in reply to Reading and writing to unicode files

Why did you write one open as "<:utf8", but the other as ">:encoding(utf8)"? I don't see ":encoding" in 3rd edition Camel, but it admits to being incomplete in this regard (p.754).

If there's a null (0x0) before each otherwise normal ASCII character, that sounds more like UTF-16 than UTF-8. See the difference explained in a post on w3.org.

So I would recommend trying ">:utf16", and see if you get what you want. Good Luck!

--
Spring: Forces, Coiled Again!
  • Comment on Re: Reading and writing to unicode files

Replies are listed 'Best First'.
Re: Re: Reading and writing to unicode files
by cbingel (Acolyte) on Mar 04, 2004 at 22:30 UTC
    I tried :utf16, but it wouldn't open the file. DO I need to turn that on somewhere?