Printing spanish charset

D

David caso

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?

thanks for all.
 
I

Ilya Tumanov [MS]

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).
 
J

Jo

great link Ilya
Cheers
jo

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 tohttp://groups-beta.google.com/group/microsoft.public.dotnet.framework...
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"David caso" <david.soporte.esto.lo.quitas.sico.es> wrote in message










- Show quoted text -
 
D

David caso

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ó:
 

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