We are working with simple backend for the new Rail 2.2 i18n system, and knowing how to set up the appropriate syntax Want to encoding in a yaml file
In other words what is yaml for this XML:
& lt ;? Xml encoding = "UTF-8"? & Gt;
You can not define the encoding in YAML But there is also not required , because the encoding is done at the file level and is transparent for YAML and its parsing. When writing YAML documents, you need to remember it.
At the file level, YAML supports UTF-8 and UTF-16, but not UTF-32. It is that
all characters [...] are unicode code points, each such code point is written as one or more octet, depending on the encoding described. Note that in UTF-16, the letters above #xFFFF are written as four octets using a surrogate pair. A YAML processor should support UTF-16 and UTF-8 character encoding. If a letter does not start with a byte order mark (#FEFF), then the character encoding is UTF-8 otherwise it will be either UTF-8, UTF-16 or UTF-16 BE, as indicated by the byte order sign . On output, it is recommended that the byte order mark should be emitted only for UTF-16 character encoding. Note that UTF-32 encoding is not explicitly supported.
Comments
Post a Comment