From: Tobias Reif Date: 2001-10-04T18:30:05+09:00 Subject: [ruby-talk:22065] writing UTF-8 strings Hi, I'm starting to figure out how to serve SVG with Ruby. (If anyone elso does this: perhaps we can exchange experience offlist.) Now I need to know how to output/print a string in UTF-8 encoding. (since this is one of the encodings XML implementations like an SVG viewer are required to support, AFAIK) 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 --- 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/