From: Tobias Reif Date: 2001-10-04T18:57:41+09:00 Subject: [ruby-talk:22067] Re: writing UTF-8 strings Yukihiro Matsumoto wrote: > Just print. UTF-8 is ASCII compatible, so when you use only ascii > region characters, it's no difference between ASCII string and UTF-8 > string. So what do I declare?: Is there a difference between an ASCII string and a UTF-8 string with only ascii region characters? [...] And since Ruby is 8bit clean, when you type in UTF-8 strings > in your script, they just work fine. XML implementations are required to handle UTF-8. I'm serving SVG, which is XML, so I'd like to serve UTF-8; with UTF-16, it seems to be the only thing I can be sure of that the client can handle it. With Ruby, would use UTF-8 characters, serve ASCII, and declare it's UTF-8? Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/