Windows Mobile 5.0 + ISO-8859-1 Encoding Issue

R

Robin

I am writing a .Net CF 2.0 application that sends data to a mobile
printer through a serial bluetooth connection. In order for the
printer to understand the French characters the data needs to be
encoded to ISO-8859-1 using
System.Text.Encoding.GetEncoding(28591).GetBytes(sData) which throws a
"PlatformNotSupportedException" when run on a Windows Mobile 5.0
system. It however works fine from Windows.

According to: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=466564&SiteID=1
the only real alternative is to use Windows-1252 encoding which the
printer does not understand.

PS- If there was anyway for me to change this to UTF-8 I would, but it
is a printer data requirement.

Any thoughts would appreciated.

Thanks!

Diilb
 
U

Ulrich Strauss

encoded to ISO-8859-1 using
System.Text.Encoding.GetEncoding(28591).GetBytes(sData) which throws a
"PlatformNotSupportedException" when run on a Windows Mobile 5.0
system. It however works fine from Windows.

This usually means the requested Codepage is not in your image.
Make sure the ISO-8859-1 Codepage is enabled in the platform builder
poperties (Project Properties -> Locales: Codepages)

-Ulrich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top