Printing spanish charset

  • Thread starter Thread starter David caso
  • Start date Start date
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.
 
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).
 
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 -
 
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ó:
 
Back
Top