Hello Joel,

On Jan 4, 2007, at 4:09 PM, Joel Rees wrote:


On 2007/01/03, at 23:52, Nobumi Iyanaga wrote:

$_ = decode ("shiftjisx0123", $_);

print;

I get this error message:
untitled text 4:21:  Unknown encoding 'shiftjisx0123'

Is that a typo?

What am I doing wrong...??

Maybe 0123 should be 2013?

(I've never seen the version number for jis tagged on the end, but ...)

Ah! thank you! That's right. It is "shiftjisx0213"! My excuse, if there is any, is that I copied "shiftjisx0123" from <http:// search.cpan.org/~dankogai/Encode-JIS2K-0.02/JIS2K.pm>, under ABSTRACT ("Canonical")....


-------

And -- if I can solve this problem, I would like to find out from text files in shiftjisx0123 characters which belong only to JIS X 0213, not to JIS X 0212. Is this possible...??

I'm sure it's possible, either by making something like an isprint boolean table for each entire character set, or be slurping the file and scanning it in parallel from memory. I think it should even be possible to open two read-only streams on the same file, read characters out, and throw some message when the one doesn't match the other.

Don't know if there are any shortcut tools for it.

Thank you.  I will try to study a little more on this problem.

Best regards,

Nobumi Iyanaga
Tokyo,
Japan




Reply via email to