Re: iso-2022-jp, adding encodings..

2001-06-18 12:08:59
On Sat, Jun 16, 2001 at 04:42:39PM +0900, Dan Kogai wrote:
on 01.6.15 9:04 AM, Edward Peschko at edwardp(_at_)excitehome(_dot_)net wrote:
How exactly do you add a new charset map to Unicode::Map? Where do you get 
encodings from? Where are they defined?

I saw your reference to, but that just points
to a file, not a directory of mapping sets.

All I'm trying to do is convert from UTF8 to iso-2022-jp ( the form of shift
jis that is used in email...) any help on how to do this would be greatly

  If that is the deal, just use Jcode available via CPAN.  And

    use Jcode;

    $iso_2022_jp = jcode($utf8, 'utf8')->iso_2022_jp;

  Unfortunately, Unicode::String (and Unicode::Map8) cannot handle 16-bit
CJKV strings (and that's the reason why I developed Jcode).

Hmm.. I guess I wanted a universal solution. Why can't Unicode::Map8 handle 
16-bit CJKV strings? Why can't it be Unicode::Map?


<Prev in Thread] Current Thread [Next in Thread>