From: Simon Strandgaard Date: 2003-12-20T01:46:56+09:00 Subject: Re: string to UTF On Fri, 19 Dec 2003 16:59:53 +0100, Jean-Baptiste wrote: > How to convert a single string into UTF format. I have made a utf8 encoder/decoder.. fetch these files: 'unicode.rb' and 'misc.rb' http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/unicode/?cvsroot=aeditor server> ruby a.rb "f\345 r\370dgr\370d med fl\370deovertr\346k" "f\303\245 r\303\270dgr\303\270d med fl\303\270deovertr\303\246k" server> cat a.rb require 'unicode' text = "f� r�dgr�d med fl�deovertr�k" p text p text.to_utf8 server> -- Simon Strandgaard