From: matz@... (Yukihiro Matsumoto) Date: 2001-10-04T18:48:49+09:00 Subject: [ruby-talk:22066] Re: writing UTF-8 strings Hi, In message "[ruby-talk:22065] writing UTF-8 strings" on 01/10/04, Tobias Reif writes: |How can I do this; for example here | |--- |print "Content-type: image/svg+xml\n\n" | |svg = < | | | | |SVG_DOC | |# how to output the string in UTF-8? |print svg 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. And since Ruby is 8bit clean, when you type in UTF-8 strings in your script, they just work fine. matz.