Rusty Well-Known Member Licensed User Longtime User Aug 9, 2016 #1 I have edit text boxes on an activity. When I type the extended characters such as "á", (which are comprised of the letter a and the uni-code ́ assembled with: Code: Result = jo.RunMethod("normalize", Array(tmpstr, "NFKC")) The Uni-code management result is fine, however the display in the textbox looks like: with "whitespace" between the characters. Within the code: The text looks just fine. (Strangely ñ doesn't create the white space...) Is there an encoding function or setting that I am missing for the Edit Text display? ... UTF8/UTF16?? Thanks Rusty Attachments upload_2016-8-9_15-1-33.png 22.2 KB · Views: 549 upload_2016-8-9_15-10-28.png 21.4 KB · Views: 521
I have edit text boxes on an activity. When I type the extended characters such as "á", (which are comprised of the letter a and the uni-code ́ assembled with: Code: Result = jo.RunMethod("normalize", Array(tmpstr, "NFKC")) The Uni-code management result is fine, however the display in the textbox looks like: with "whitespace" between the characters. Within the code: The text looks just fine. (Strangely ñ doesn't create the white space...) Is there an encoding function or setting that I am missing for the Edit Text display? ... UTF8/UTF16?? Thanks Rusty
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2016 #2 Encoding is only relevant when you convert raw bytes to string. Once you have a string object there is no encoding involved. The only thing that can affect the displayed characters is the font used. Upvote 0
Encoding is only relevant when you convert raw bytes to string. Once you have a string object there is no encoding involved. The only thing that can affect the displayed characters is the font used.
Rusty Well-Known Member Licensed User Longtime User Aug 10, 2016 #3 Thanks Erel, It was the font... I was using fontawesome.ttf and changed it back to DEFAULT. That resolved it. Thanks, Rusty Upvote 0
Thanks Erel, It was the font... I was using fontawesome.ttf and changed it back to DEFAULT. That resolved it. Thanks, Rusty