From: Brian Candler Date: 2003-08-12T23:55:47+09:00 Subject: Re: UTF-8 question On Tue, Aug 12, 2003 at 11:31:53PM +0900, Nikolai Weibull wrote: > I've finally switched to UTF-8. It's awesome. Now, if I can only find > a utility that draws ANSI-art with UNICODE's line/block-drawing > characters ;-). (I guess it'd have to be UNICODE-art then ;-) My > problem, however, is: Ruby doesn't seem to support UTF-8, which is bad > for me. I need it to parse incoming UTF-8 strings to convert them to > valid ISO9660 filenames. Anyone have any suggestions as to how to solve > this? Are there any good libraries? Try 'iconv', supplied with 1.8.0 or available from RAA as in the "shim" module. Note: this didn't build on my FreeBSD system, even though I have libiconv and iconv.h: $ less ext/iconv/mkmf.log have_header: checking for iconv.h... -------------------- gcc -E -I/home/brian/rubykit18/work/ruby-1.8.0 -I/home/brian/rubykit18/work/ruby-1.8.0 -g -O2 -o conftest.i conftest.c conftest.c:1: iconv.h: No such file or directory checked program was: /* begin */ #include /* end */ It guess it doesn't look in /usr/local/include unless told explicitly to do so. Regards, Brian.