This would best go to a mailing list for the Encode module, but I'm lazy.
So shoot me.
If I put a
use encoding 'euc-jp'; # or shiftjis if the file is shift JIS
in the source of a .pm file, I get things like \x{005c} where characters
should be in the html output, and (on Solaris) messages in the apache
log like
"\x{5f7c}" does not map to euc-jp during global destruction.
but when I comment that line out in the .pm file the page displays
properly. Can someone explain why?
There's basically nothing in the .pm file but a package declaration and
constants. (I was trying to set the constants conditionally, but I
couldn't get that to work, so I stripped out everything but the
constants.) The calling file is a dead simple CGI file the uses the CGI
module and my module of system constants and nothing else.
I can try this at home on my iBook and post the code and results
relevant to Mac OS X tonight, but I thought I'd go ahead and ask earlier
rather than later. (Hoping it's just because I don't know what I'm doing.)
--
Joel Rees, programmer, Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp