[Mono-dev] Character encoding issues on Linux

Jeffrey Stedfast fejj at novell.com
Thu May 17 10:09:49 EDT 2007


As far as I know, Mono depends on libiconv (as either a standalone
package or built into glibc - which is the case on Linux systems afaik)
for charset conversion.

The charset names used by libiconv however, may be named differently -
so I'm sure Mono has a table to try and do the proper mapping (I've had
to write tables like this in the past working on other projects).

I think CodePage 1256 probably maps to Windows-CP1256, which on my
particular Linux system w/ whatever libiconv I have could be mapped to
either CP1256 or WINDOWS-1256

(iconv --list will give you a listing of all supported charset names)

Perhaps I'll take a look later and see if I can't see something obvious
(I haven't ever worked on the runtime so I dunno for sure how it does
charset conversion, I could be way off)

Jeff

On Thu, 2007-05-17 at 11:08 +0100, Martin Brown wrote:
> Hi,
> 
> We've got an application running on Mono on Linux. For the most part it
> runs very well; however every so often we get an exception: 
> "CodePage 1256 not supported"
> The code page number varies depending on the encoding present in the
> file.
> 
> >From the MS page here
> http://msdn.microsoft.com/library/shared/deeptree/asp/rightframe.asp?dtcfg=/library/deeptreeconfig.xml&url=/library/en-us/cpref/html/frlrfsystemtextencodingclassgetencodingtopic1.asp?frame=true&hidetoc=false 
> it looks like the MS .Net implementation relies on the OS for character encoding services. Is this the case for Mono too? If so, what needs to be available on Linux to perform this encoding?
> 
> Thanks
> 
> Martin
> Filtered by 3BClean from http://www.3bview.com
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list