Click here to Skip to main content
Sign Up to vote bad
good
See more: C#
When I sort the data, there is a problem like that:
e.x the words 'Kosovë' is part of a file...
 
in sort form the character "ë" isn't but in place of this character there is something like that " ● "...
Posted 14 Apr '12 - 7:34
h7h7h7398

Comments
Nelek - 14 Apr '12 - 13:40
Have you checked the regional settings or the language settings of the project? Special characters like äöüáéíóú and so on, don't get always correctly "translated".
besarto - 14 Apr '12 - 13:58
Where should I check it ??
Nelek - 14 Apr '12 - 16:56
To be honest... I can't tell you. It has been a long time without using visual studio. Is it a Unicode Build?
besarto - 15 Apr '12 - 5:37
I solve the problem thnx to all.....I just should use this code " System.Text.Encoding.Default" ..... thankyou

3 solutions

  Permalink  
Comments
besarto - 14 Apr '12 - 16:05
Shahin thnx.... but I cant repair it still..... can you explain short....what ecaxtlu should I do..!
Shahin Khorshidnia - 14 Apr '12 - 17:04
Did you follow the link?
VJ Reddy - 14 Apr '12 - 21:08
Good link. 5!
Shahin Khorshidnia - 15 Apr '12 - 4:10
Thanks
besarto - 15 Apr '12 - 5:14
Yes Shahin, I follow it... original text where I put it in a textbox there is ok with characters, but when I make words double there is a problem..... e.x Kosovë is a small contry in europe.( that is a file data.txt) when I put it in textbox there is no problem with "ë"... Now the problem is when I split this sentences like that: Kosov ● is is a a small small country so when a make double words this character " ● " is in a place of "ë"
besarto - 15 Apr '12 - 5:36
I solve the problem thnx to all.....I just should use this code " System.Text.Encoding.Default" ..... thankyou
Shahin Khorshidnia - 15 Apr '12 - 7:28
Ok, Thank God!
I think there may be 2 issues.
 
1. The font of the control in which the text is being is displayed, may not be capable of showing the letters specific to the that type. So, try setting the Font of the Control to the one, which can handle those characters.
2. There may be an issue with the CurrentCulture. So, try setting the CurrentCulture to the culture appropriate culture for the above characters, like
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo 
("hi-IN");
The list of Culture Codes are given here
Culture Names [C#][^]
 
and here
http://msdn.microsoft.com/en-us/goglobal/bb896001[^]
 
The advantage of setting the CurrentCulture to the appropriate culture specific to the above characters, is that, it will ensure proper sorting.
  Permalink  
Comments
besarto - 15 Apr '12 - 5:37
I solve the problem thnx to all.....I just should use this code " System.Text.Encoding.Default" ..... thankyou
VJ Reddy - 15 Apr '12 - 5:43
You're welcome.
besarto wrote:
I solved the problem thanks to all.....I just should use this code
System.Text.Encoding.Default
Thank you
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 216
1 Sergey Alexandrovich Kryukov 175
2 Tadit Dash 154
3 Richard MacCutchan 145
4 Santhosh G_ 125
0 Sergey Alexandrovich Kryukov 10,294
1 OriginalGriff 7,955
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 15 Apr 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid