I am facing issues while calculating length of strings that contain Thai characters. In the below image from Notepad++, we need a way in c#/.NET to get the Document Length value (170) for the provided string -
String.Length works well for English Language/Characters, but for this example ("บ.อินเตอร์เทค+สเปคเชียวตี้+กลาส+จำกัด+28%2f10+หมู่+1+ต.+คลองอุดมชลจร") - it returns length as 69, instead of 170. Is there a way in c#/.NET to get the actual length of string values for non-English languages?
I tried using Encodings as well, but no luck. Any pointers/help on this will be great.
Thanks in advance!