Click here to Skip to main content
12,621,340 members (30,851 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: encoding
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 4-May-11 14:15pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 4 May 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100