[Gambas-user] How to deal with unicode

Safiur Rahman i_safiur at ...67...
Tue Jun 24 19:43:11 CEST 2014


I am converting an application to local language which uses "Devanagri" letters and numbers. I have changed System.Language to "ne_NP.UTF-8". My System.Charset is "UTF-8". I have little knowledge of lacalization methods used by gambas. My problems are:
1) Datebox displays month and week days in Devanagri but not the day numbers.
2) How can I write Devanagri numbers (eg. १२३४५६७८९०) in valuebox?
3) How can I do arithematical calculations using these numbers?
4) How can I save these numbers in database table with numerical type column? If I save English numbers in database then how can I display those numbers on application in Devanagri?
5) How can I create table columns in UTF-8. The gb.mysql works (ie. $hCon.MySQL.Table.Add("fldCost", "InnoDB", $hCon.MySQL.Charset) created column with UTF-8 type). However gb.db doesnot work wih mysql (ie. hTable = $con.Tables.Add("tbllabel") doesnot create column with UTF-8 type in MySQL database). I am using mariadb version 10.

System Information:
[System]
Gambas=3.5.3
OperatingSystem=Linux
Kernel=3.11.0-23-generic
Architecture=x86
Distribution=Ubuntu 12.04.4 LTS
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=1944M
[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

 		 	   		  


More information about the User mailing list