Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 6 Jahren
Letzter Beitrag:
vor 6 Jahren
Beteiligte Autoren:
CCC, Georgio

[WD16] Listadd combobox unicode BUGS

Startbeitrag von CCC am 10.11.2011 12:19

I found another bugs with unicode on combobox. the unicode option in combobox is ENABLE

here the funny part of the bugs.
if the combobox content set fill by file/query , the output show correct.

but if you set content fill by programming and try populate using listadd() , the output show '???'






Antworten:

Those aren't bugs; you aren't handling the string correctly.

You have to convert whatever string you are trying to populate to the
combo to unicode.

Look at the following functions: AnsiToUnicode & UnicodeToAnsi.

Thanks
Georgio

von Georgio - am 10.11.2011 20:39
Quote
Georgio
Those aren't bugs; you aren't handling the string correctly.

You have to convert whatever string you are trying to populate to the
combo to unicode.

Look at the following functions: AnsiToUnicode & UnicodeToAnsi.

Thanks
Georgio


the string I tried to populate contain unicode values.

using hexecutesqlquery() I retrieve a set of records from mysql table which contain values in japanese/chinese languages.

just to be sure that it's not the issue from the records that i retrieve, I also try populate the records into textbox which display the records correctly .





von CCC - am 11.11.2011 00:38
what I did is i retrieve a data from mysql database using hexecutesqlquery() which contain records in japanese/chinese character . then I populate it to combobox manually using listadd().
the records in japanese/chinese character show as '???' in combobox .
just to be sure that the problem is on listadd() function what I did
1. I also populate the records into textbox which show up correctly the japanese/chinese character.

2. I set combobox content fill by file/query , let it populate automatic. the japanese/chinese character records show up correctly.

I sent the all problem I encounter with unicode to windev tech support but after reply email for more detail , I do not receive anymore email on solution .




von CCC - am 11.11.2011 05:33
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.