No such thing as a small change | |
PerlMonks |
Re: dynamically detect code pageby blahblahblah (Priest) |
on Feb 24, 2006 at 02:12 UTC ( [id://532441]=note: print w/replies, xml ) | Need Help?? |
I notice that some lines in your example contain "GER-" and some contain "JAP-". Could you use that as an indicator for which lines contain which characters?
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 Section
Seekers of Perl Wisdom
|
|