Felix -- > yes, we're not trying to serialize arbitrary binary data. But we do want > to have files with content in German, including umlauts.
So in this context that's what I was referring to as "arbitrary binary data," in that the Latin1 character set uses all eight bits. It isn't the Germaness that is significant but the fact that the binary values of the data needs to be preserved. > It might be acceptable to convert all our files to UTF8, but puppet > would be our sole reason for it, which doesn't sit quite right with me. This shouldn't be necessary. > What do you mean by "unescaped"? Can non-ASCII symbols be escaped in any > way in non-UTF encoded text? So the general way of dealing with these sorts of issues is to precede characters that would otherwise be misinterpreted with a special character (generally "\") so that the data that is reconstructed on the receiving end is bit-for-bit identical with the data on the sending end. See: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Core_Language_Features#String_Literals for details on the system used by PSON/JSON/etc. Note especially that there are provisions for Latin1 using /x__ where the "__" is a pair of hex digits specifying the eight bits needed to represent the character. > Even if that was the case, I guess we might as well go ahead and convert > the manifests and templates to UTF8, instead of messing with our Latin1 > texts. Where are you seeing the problems? Are there file contents specified in your manifests that are not being transmitted properly or...? If you could provide some examples it might help identify the problem. -- M ----------------------------------------------------------- The power of accurate observation is commonly called cynicism by those who have not got it. ~George Bernard Shaw ------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
