Other [SOLVED] Lack of knowledge: getting the string encoding

lemonisdead

Well-Known Member
Licensed User
Hello,

I am asking for a little help about how to get the default string encoding or a link about. The need is to distinguish which is ASCII and which is UTF-8.

Is the best solution to convert the string to ASCII, reencode it and compare it with the original ? That's what I did but sometimes I don't get the real string's length.

This is to be able to know its length in Bytes (about like the problem for the SMS length).

Any help really appreciated. Many thanks
 

lemonisdead

Well-Known Member
Licensed User
Hello Erel,
Thanks a lot for the idea. It will solve my need for sure. Great :)
 
Top