Re: How to read UTF-8 chars using VBA
- From: "Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Dec 2006 11:54:11 -0000
VB uses Unicode internally. Hence, you have to convert the UTF-8 to Unicode
when loading it into the VB app. Controls generally use the current ANSI
code page rather than Unicode but the translation from Unicode will happen
transparently - you don't have to do it yourself. If the characters are not
appearing then it may be that those characters are not part of your current
ANSI code page. What locale are you using, and what characters are you
trying to display?
Tony Proctor
"MSK" <mannaikarthik@xxxxxxxxx> wrote in message
news:1165318371.806846.303470@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks, but that code converts the UTF-8 chars into Unicode,again I amhttp://groups.google.ie/group/microsoft.public.vb.general.discussion/msg/00f3c3fd8182563e?hl=en&
losing the required chars, actually I want to show those special chars
as it is in the list box.
MSK.
Tony Proctor wrote:
Here's a link to some code that reads UTF-8 encoded data into a VB app:
Tony Proctor
"MSK" <mannaikarthik@xxxxxxxxx> wrote in message
news:1165312983.479419.100970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am currently developing some Word templates (office 2003) + VBA
I have a UTF-8 encoded text file...I wanted to read and show the
values into a list box...
The charactors are getting changed while reading and filling the
control...(but in the text file they are perfect)
I tried FSO and Open statement with Line input.. I dont know how to
Convert into normal chars..
How to resovle.. ?
Its bit urgent...give me some useful links
Many thanks.
MSK.
.
- Follow-Ups:
- Re: How to read UTF-8 chars using VBA
- From: MSK
- Re: How to read UTF-8 chars using VBA
- References:
- How to read UTF-8 chars using VBA
- From: MSK
- Re: How to read UTF-8 chars using VBA
- From: Tony Proctor
- Re: How to read UTF-8 chars using VBA
- From: MSK
- How to read UTF-8 chars using VBA
- Prev by Date: Re: How to read UTF-8 chars using VBA
- Next by Date: Populating dropdown based on selection of other dropdown
- Previous by thread: Re: How to read UTF-8 chars using VBA
- Next by thread: Re: How to read UTF-8 chars using VBA
- Index(es):
Relevant Pages
|
Loading