hi
I am having problems getting unicode characters into VB. Using VB6 (sp3) and
Access 2000
Characters are displayed correctly in Access, just when I use ADODB (2.7) to
read them in VB i get ? character instead of unicode characters.
I will display them in TreeView (capable of Unicode)
Is there any patch, fix or something, I know this thing is going around
newsgroups for a long time just I didn't find any solution for it on the
web.
Thanks,
B 5 5062
On Wed, 17 Nov 2004 13:40:08 +0100, "Borko" <bo***@nospam.info> wrote:
It may be the font you are using. Try MsMincho or Arial Unicode.
Why use VB6SP3? The rest of the world is on SP6.
-Tom. hi I am having problems getting unicode characters into VB. Using VB6 (sp3) and Access 2000
Characters are displayed correctly in Access, just when I use ADODB (2.7) to read them in VB i get ? character instead of unicode characters.
I will display them in TreeView (capable of Unicode)
Is there any patch, fix or something, I know this thing is going around newsgroups for a long time just I didn't find any solution for it on the web.
Thanks, B
same thing
"Tom van Stiphout" <no*************@cox.net> wrote in message
news:l5********************************@4ax.com... On Wed, 17 Nov 2004 13:40:08 +0100, "Borko" <bo***@nospam.info> wrote:
It may be the font you are using. Try MsMincho or Arial Unicode. Why use VB6SP3? The rest of the world is on SP6. -Tom.
hi I am having problems getting unicode characters into VB. Using VB6 (sp3) and Access 2000
Characters are displayed correctly in Access, just when I use ADODB (2.7) to read them in VB i get ? character instead of unicode characters.
I will display them in TreeView (capable of Unicode)
Is there any patch, fix or something, I know this thing is going around newsgroups for a long time just I didn't find any solution for it on the web.
Thanks, B
VB does not support Unicode in any version <= 6.0 of any SP.
See Chapter 6 of Internationalization with Visual Basic (available for free
online at http://www.i18nwithvb.com/ ) for more info on the limitations. The
book and the code samples have info on the workarounds (third party
controls, owner draw, etc.).
--
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure and Font Technologies
Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights.
"Borko" <bo***@nospam.info> wrote in message
news:cn**********@ls219.htnet.hr... hi I am having problems getting unicode characters into VB. Using VB6 (sp3)
and Access 2000
Characters are displayed correctly in Access, just when I use ADODB (2.7)
to read them in VB i get ? character instead of unicode characters.
I will display them in TreeView (capable of Unicode)
Is there any patch, fix or something, I know this thing is going around newsgroups for a long time just I didn't find any solution for it on the web.
Thanks, B
OK... so if anyone else read this and don't want to buy book (or can't wait
for) the solution is as follows
VB reads data from Access correctly, so it's working with Unicode internally
just fine
You can solve the controls problem by changing font script property from
Western to (let's say) Greek or Central European
When you get some data from the control it will not be in Unicode so you
will have to make lookup table for conversion (e.g. ˙ to é and vice versa)
You will have to use it when reading from database and writing to control
and the reverse function when reading from control and writing to database
Check database (like Access) to see if you written correctly (Access is
Unicode :)
There is always Forms2.0 but you can not distribute it with your application
(because Microsoft said so).
Have fun... I know I won't bo*****@yahoo.com
"Michael (michka) Kaplan [MS]" <mi*****@online.microsoft.com> wrote in
message news:41********@news.microsoft.com... VB does not support Unicode in any version <= 6.0 of any SP.
See Chapter 6 of Internationalization with Visual Basic (available for free online at http://www.i18nwithvb.com/ ) for more info on the limitations. The book and the code samples have info on the workarounds (third party controls, owner draw, etc.).
-- MichKa [MS] NLS Collation/Locale/Keyboard Technical Lead Globalization Infrastructure and Font Technologies Windows International Division
This posting is provided "AS IS" with no warranties, and confers no rights.
"Borko" <bo***@nospam.info> wrote in message news:cn**********@ls219.htnet.hr... hi I am having problems getting unicode characters into VB. Using VB6 (sp3) and Access 2000
Characters are displayed correctly in Access, just when I use ADODB (2.7) to read them in VB i get ? character instead of unicode characters.
I will display them in TreeView (capable of Unicode)
Is there any patch, fix or something, I know this thing is going around newsgroups for a long time just I didn't find any solution for it on the web.
Thanks, B
"Borko" <bo***@nospam.info> wrote... OK... so if anyone else read this and don't want to buy book (or can't
wait for)
I was not trying to sell any books here -- its out of print. So if you can
find it, then its from somewhere that will not be paying me any royalties.
:-)
the solution is as follows
VB reads data from Access correctly, so it's working with Unicode
internally just fine
Well, it has Unicode strings, yes. But almost anything you do with that
string in code outside of COM objects (write to a file, call an API, etc.)
will corrupt it and make them into question marks.
You can solve the controls problem by changing font script property from Western to (let's say) Greek or Central European
This will not work properly for any of the languages here -- once the
strings are converted from Unicode, question marks is all you can get.
When you get some data from the control it will not be in Unicode so you will have to make lookup table for conversion (e.g. ˙ to é and vice versa)
You mean rather than using the APIs or the StrConv function, to use the
tables that already exist in Windows, the ones that did the actual
conversion.
You will have to use it when reading from database and writing to control and the reverse function when reading from control and writing to database
Check database (like Access) to see if you written correctly (Access is Unicode :)
Everything in this situation is Unicode for them, except for the treeview.
And the one from MS cannot be solved by any of what you just talked
about....
There is always Forms2.0 but you can not distribute it with your
application (because Microsoft said so).
Well, there are also crashing bugs in some versions of it when hosted in
Access or VB -- environments where it was not tested. Sometimes Microsoft
likes to help people avoid that sort of problem. :-)
--
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hallvard B Furuseth |
last post by:
Has someone got a Python routine or module which converts Unicode
strings to lowercase (or uppercase)?
What I actually need to do is to compare a number of strings in a
case-insensitive manner,...
|
by: Zenobia |
last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice
features such as:
* rewrite source code
* check syntax
* global search & replace (through several files at...
|
by: Basil |
last post by:
Hello.
I have compiler BC Builder 6.0.
I have an example:
#include <strstrea.h>
int main () {
wchar_t ff = {' s','d ', 'f', 'g', 't'};
|
by: Michael Davis |
last post by:
Hi,
I've known C/C++ for years, but only ever used ascii strings. I have a
client who wants to know how gcc handles unicode. I've found the functions
utf8_mbtowc, utf8_mbstowcs, utf8_wctomb and...
|
by: Ger |
last post by:
I have not been able to find a simple, straight forward Unicode to ASCII
string conversion function in VB.Net.
Is that because such a function does not exists or do I overlook it?
I found...
|
by: abhi147 |
last post by:
Hi ,
I want to convert an array of bytes like :
{79,104,-37,-66,24,123,30,-26,-99,-8,80,-38,19,14,-127,-3}
into Unicode character with ISO-8859-1 standard.
Can anyone help me .. how should...
|
by: Preben Randhol |
last post by:
Hi
If I use len() on a string containing unicode letters I get the number
of bytes the string uses. This means that len() can report size 6 when
the unicode string only contains 3 characters...
|
by: 7stud |
last post by:
Based on this example and the error:
-----
u_str = u"abc\u9999"
print u_str
UnicodeEncodeError: 'ascii' codec can't encode character u'\u9999' in
position 3: ordinal not in range(128)
------
|
by: mario |
last post by:
I have checks in code, to ensure a decode/encode cycle returns the
original string.
Given no UnicodeErrors, are there any cases for the following not to
be True?
unicode(s, enc).encode(enc)...
|
by: miztaken |
last post by:
Hi,
I have a string with some unicode characters and when i tried to
displayed it in TreeView its not displaying.
I am doing like this:
TreeNode tn = new TreeNode("unicodestring");...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |