From: 7stud -- Date: 2008-02-01T23:47:24+09:00 Subject: Re: is this a complex encoding problem? Tim Perrett wrote: > Hey chaps, > > Im trying to write a text file to the file system, but it *must* have an > exact byte order as per this: > > http://support.adobe.com/devsup/devsup.nsf/docs/54161.htm > > http://support.adobe.com/devsup/devsup.nsf/docs/54162.htm > > Ive been looking at the Iconv elements of ruby, and Array.pack but im > really not sure how best to ensure that it is the correct byte order? Or > that the carriage returns are correct. > > What are peoples thoughts? > > Thanks > > Tim For UNICODE-WIN and UNICODE-MAC, the tagged text file in its entirety must be in UTF-16LE or UTF-16BE, respectively. (LE = Little Endian, BE = Big So use those encodings with iconv. -- Posted via http://www.ruby-forum.com/.