Hi, i’m try to replace unicode in string like : Tổng cộng → Tong cong
I’m try to use the way in this topic but result gonna be : T?ng c?ng
Any idea for this, please help
Thanks
Hi, i’m try to replace unicode in string like : Tổng cộng → Tong cong
I’m try to use the way in this topic but result gonna be : T?ng c?ng
Any idea for this, please help
Thanks
Hi,
Could you please try like below. it would remov
Remove Accent marks.txt (106 Bytes)
e the accent marks from string. thanks.
Hi,
many thanks for your help, i was try but the result is not true
May i know what is the language this string contains. Please find the below list of encoding methods. replace the encoding method in the function accordingly.
it’s vietnamese and here’s the string : Tổng cộng
it is weird. me too i am getting the same result. my guess whether the name is having correct punctuation marks related to Vietnamese language since we are using the encoding method for Vietnamese language. thanks.
yeah i’m gonna try another code
Many thanks for your help
An alternative solution:
text = "Tổng cộng"
normalText = String.Join("", text.Normalize(System.Text.NormalizationForm.FormD).ToCharArray().Where(Function(c) System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c) <> System.Globalization.UnicodeCategory.NonSpacingMark).ToArray)
it’s work, thank you so much
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.