Groups | Blog | Home
all groups > dotnet compact framework > may 2007 >

dotnet compact framework : Printing spanish charset


David caso
5/14/2007 1:12:58 PM

hi everybody, i've some problems when i try to print certain characters,
(á,é,í,ó,ú,ñ), spanish charset.
I'm trying to convert the string to ASCII, but only print a "?" for all
these characters.

i do the following:
Encoding.ASCII.GetString(Encoding.Convert(Encoding.Default,
Encoding.ASCII, Encoding.Default.GetBytes(Texto)))

do you have any idea?, or someone else have any idea for this problem?

Ilya Tumanov [MS]
5/17/2007 1:54:18 PM
It could not be any other way because ASCII simply does not have these
characters. You should use some other encoding which can represent these
characters. Best way to go would be to stick with UTF-8.



Also read this: http://www.joelonsoftware.com/articles/Unicode.html


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

[quoted text, click to view]

Jo
5/18/2007 4:41:28 AM
great link Ilya
Cheers
jo

On May 17, 9:54 pm, "Ilya Tumanov [MS]" <ilya...@online.microsoft.com>
[quoted text, click to view]

David caso
5/22/2007 12:00:00 AM
thanks for all, but the only way for reading, and change this charset is
reading the files in ANSII, and then for all text use the OEMtoChar,
then all text is correct.


Ilya Tumanov [MS] escribió:
[quoted text, click to view]
AddThis Social Bookmark Button