Loading native language(Kannada) text from Remote Database

shashkiranr

Active Member
Licensed User
Longtime User
Hi,

I want to retrieve a text from a remote database - MySql.

I have saved the text in the database in a column which is of UTF8 - Unicode which is the standard for android.

I have tried also to add a custom font and set a label to that font

Eg -

Dim MyFont As Typeface
MyFont = Typeface.LoadFromAssets("Kannada.ttf")
Label3.Typeface = MyFont


When the data is retrieved i get all the text as "???" i have tried with various fonts but all give the same output.

Where am i going wrong?

Kindly let me know how to go about it.

Regards,
SK
 

shashkiranr

Active Member
Licensed User
Longtime User
Yes Erel,

I am able to show the kannada font in the app if i save the kannada text as a string.

But text from the database is retrieved as "??" . I tried to assign the retrieved value to a string variable but it did not work.


I have used utf8_unicode_ci and utf32_unicode_ci for the column and Text and VARCHAR datatype for the columns containing the kannada text in database.

Regards,
SK
 
Last edited:
Upvote 0
Top