471,108 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

VB.NET garbage characters

I have a Sybase database and I've populated it with Arabic data. To do
that I used UTF-8 encoding inside the database. Now I want to view
this in VB.NET

I'm using listboxes, but when I add items to them I recieve garbage
characters. Notice that if I populate the database with english data
there's no problem at all.

I'm using an Arabic font for the listboxes, windows XP prof is Arabic
enabled, and I'm quite positive it's something inside the code. I
suspect that listboxes simply do not support Arabic fonts, but I don't
know.

Using a System.Text.UnicodeEncoding object I tried this :
..unicode.getString(arabic_name)
..UTF8.getString(arabic_name)

But nothing's working. Can anyone help me with this?

Thanks
Jul 17 '05 #1
1 2551
Almost everybody in this newsgroup is using VB6 or lower. While you may
get a stray answer to VB.NET questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups
with either the word "dotnet" or "vsnet" in their name.

For the microsoft news server, try these newsgroups...

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
microsoft.public.vsnet.general

There are some others, but these should get you started.

Rick - MVP

"mistknight" <we*******@jshop.org> wrote in message
news:63**************************@posting.google.c om...
I have a Sybase database and I've populated it with Arabic data. To do
that I used UTF-8 encoding inside the database. Now I want to view
this in VB.NET

I'm using listboxes, but when I add items to them I recieve garbage
characters. Notice that if I populate the database with english data
there's no problem at all.

I'm using an Arabic font for the listboxes, windows XP prof is Arabic
enabled, and I'm quite positive it's something inside the code. I
suspect that listboxes simply do not support Arabic fonts, but I don't
know.

Using a System.Text.UnicodeEncoding object I tried this :
.unicode.getString(arabic_name)
.UTF8.getString(arabic_name)

But nothing's working. Can anyone help me with this?

Thanks


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by lkrubner | last post: by
34 posts views Thread by Ville Voipio | last post: by
3 posts views Thread by David Merrick | last post: by
55 posts views Thread by jacob navia | last post: by
2 posts views Thread by Amrit Kohli | last post: by
15 posts views Thread by vk02720 | last post: by
12 posts views Thread by leonard.guillaume | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.