![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Howdy,
I'm new to B4P and I love this IDE tool. Chinese characters works with all the controls (textbox, label etc...), but when I display data using the SQL Controls the chinese characters disppeared and turned to square boxes. My data stores in the .sl3 format (created using the sqlite3.exe). I have downloaded .net cf (chinese version) V2 and I'm wondering if I need to have a different SQLdesktop.dll with double-byte character support? where can I find it? Or do I need to set the default font type to chinese fonts for the SQL Controls? Attached is my screen capture. ![]() Please give me a direction... Thanks! |
|
||||
|
Changing the font type of controls is done with FormLib.ChangeFont.
The SQL engine uses UTF8 which supports Chinese. You should use this encoding when you store the data with an external tool. |
|
|||
|
Hi Erel,
I have add the Formlib to my code but the chinese characters in sqlite still couldn't display correctly. here is a what I have done. Sub App_Start Form1.Show Formlib.New1("Form1",B4PObject(1)) Formlib.ChangeFont("ListBox3","simsun") Formlib.ChangeFont("Table1","simsun") ... The fonts are now changed to simsun but it's still display as square boxes... Help! Here is my sqlite data and code. http://www.ecdiy.com.tw/b4p/sqlite_chinese.zip --- Are there any vietnamese b4p users? I have a project to develop a free vietnamese <-> chinese<-> english dictionary for WinCE devices... let me know if any of you are interested. Last edited by dennychuang : 05-22-2008 at 07:49 AM. |
|
|||
|
Hi Erel,
Thanks for your helpful solutions! I have now find out my problem is caused by incompatible chinese default coding. SQLite3 insert statements cannot be inserted directly under DOS command lines. It must be inserted by running the SQLite GUI or by B4P's coding. cmd.CommandText = "INSERT INTO table1 VALUES('新細明體')" Well, thanks again for the prompt reply! B4P is great!!! ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FileReadToEnd(c) when textfile has chinese will display ~!@#$ | jamesz | Bug Reports | 1 | 10-26-2008 06:29 AM |
| put byte value into a string | cotralis | Questions & Help Needed | 5 | 09-13-2008 04:30 AM |
| display Chinese font | Vito | Questions & Help Needed | 1 | 12-11-2007 12:56 PM |
| load textfile with special characters (äöü) | bob | Questions & Help Needed | 2 | 11-19-2007 02:24 PM |
| Strange characters | pmu5757 | Questions & Help Needed | 2 | 09-30-2007 09:56 AM |