Converting between UTF8 and local codepage without specifying local codepage

[email protected] (David Schlegel)
Newsgroups perl.unicode
Message-ID <OFDCDDB0D6.CB173414-ON852570B2.0073FD93-852570B2.0073863C@us.ibm.com>
Is there someway to convert from "whatever" the local codepage is to utf8 
and back again ? 

The Encode::encode and decode routines require passing a specific codepage 
to do the conversion but finding out what the "local codepage" is is very 
tricky across different platforms, particularly UNIX where it is hard to 
determine.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.