As far as detecting the Japanese encoding of a string, Jcode might be useful. (See the getcode sub.)
Like duckyd alluded to, if you have any control over the writing of the file, writing it in a single encoding -- utf-8 -- could make reading it a lot easier.
In reply to Re: dynamically detect code page
by blahblahblah
in thread dynamically detect code page
by edwardt_tril
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |