We are working with the simple backend for the new Rails 2.2 i18n system, and I wanted to know the proper syntax for setting the encoding in a yaml file.
On other words what is the yaml for this xml:
<?xml encoding='UTF-8' ?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t define the encoding in YAML. But there’s also no need to, since the encoding is done at the file level and is transparent to the YAML and its parsing. When writing a YAML document, this is all you need to remember.
On the file level, YAML 1.1 supports UTF-8 and UTF-16 but not UTF-32. The full details of the 1.1 specification is that
For YAML 1.2, UTF-32 is supported as well.