-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Williams wrote:
> On Wed, 6 Dec 2006, Marius Feraru wrote:
>> I always choose Unicode... working harder (obviously) on getting "data"
>> upgraded to Unicode (Encode::Detect is a useful helper _usually_).
^^^ i did say this, but missed to explain what "data" means. It's your
"everything" :))
> I tried the opposite, but "everything" included strings returned from
> DBD::mysql, DBD::Oracle, LWP::UserAgent, CGI, Apache2::Request and
> Apache2::Upload, Text::CSV, Text::vCard, and many other other modules.
So yes, as your see, I know this could be a tremendous work do deal with
those buggers ;-)
>> preamble => qq{use encoding 'utf8';\n},
> Yes, that is the advertised solution, which is supposed to just assume
> everything is utf8.
Nope, all it means is that your source code is utf8 encoded! :)
(don't quote the docs, I know it has some sugar on top _in some cases_ -
setting PerlIO layers of STDIN/STDOUT - but _never_ rely on that).
> I eventually tracked my problem down to a bug in perl itself.
> <http://rt.perl.org/rt3//Public/Bug/Display.html?id=36248>
Sorry, looks like nobody read your bug report. :(
Quite a drag, since it's one and a half years old... I suppose nobody
cared to close it as invalid or something :(
Now it's time to quote the docs (and remember that the "utf8" it's just
an - hm - "older" form of "encoding", hopefully it will completely
disappear while I'm still alive)
use encoding [ENCNAME] ;
Sets the script encoding to ENCNAME. And unless ${^UNICODE}
exists and non-zero, PerlIO layers of STDIN and STDOUT are set
to ":encoding(ENCNAME)".
So, this preamble-encoding little helper does it's best with the code
Mason compiler generates... and only that ;-)
Sorry again John, this is not the Saint Graal we're all looking for :(
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----
iD8DBQFFd0MrtZHp/AYZiNkRAsaYAJ0dKuv5ru8mQPKGhQ2hJv+W3Vx6vACbBiZ9
LG3M2TnCTRkZrTS3f8Fx0Ps=
=dxB6
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users