Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
VB.NET garbage characters
Old
  (#1)
mistknight
Guest
 
Posts: n/a
Default VB.NET garbage characters - 06-04-2007, 09:48 AM

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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: VB.NET garbage characters
Old
  (#2)
Rick Rothstein
Guest
 
Posts: n/a
Default Re: VB.NET garbage characters - 06-04-2007, 09:48 AM

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" <EMAIL REMOVED> wrote in message
news:EMAIL REMOVED 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top