Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello dear developers, I am working on a project C#, that contains data encryption, but I am having some trouble with the leter Ñ that is used in Spanish, do you have any solution for that?

please help me or contact me joe.metal@hotmail.com
Posted

1 solution

There is not solution because there is no such problem, as soon as your font supports Unicode. Make sure you do not convert text into ANSI or any other non-Unicode encoding before encryption. It's the best to treat the text as UTF-8, see http://msdn.microsoft.com/en-us/library/system.text.utf8encoding.aspx[^]. The encoding converts text from/to array of bytes which should be further encrypted/decrypted.

See also:
http://en.wikipedia.org/wiki/UTF-8[^],
http://unicode.org/[^],
http://unicode.org/faq/utf_bom.html[^].

If you still cannot overcome this confusion, you may want to make a short code sample (really short, some 5 lines or so) to show what are you doing. I would be able to find out what's wrong. Use "Improve question".

But first, please try to sort it out yourself.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900