From: Chris Gehlker Date: 2002-05-07T02:04:53+09:00 Subject: Re: Are %q and %Q universal? On 5/6/02 7:10 AM, "Yukihiro Matsumoto" wrote: > Fortunately (or unfortunately) Ruby parser only takes ASCII character, > so that you have to convert unichars into ASCII before passing > programs to the parser. So that your assumption will not be the > problem. The light dawns. I was interpreting the one line explanation of the -K flag incorrectly, but in a way that happens to work as long as the flag and the encoding parameter to dataUsingEncoding and initWithData are consistent. In looking into this a bit more, I read up on EUC and SJIS. Now here's a question just to satisfy my curiosity. "Did the inventor of SJIS like to inhale plastic adhesives?" EUC has an internal logic, as does UTF-8. SJIS just seems deliberately arbitrary and obscure. Probably I'm missing something because I can't write Japanese. -- C++: The power, elegance and simplicity of a hand grenade.