VB.NET garbage characters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mistknight

    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.Uni codeEncoding object I tried this :
    ..unicode.getSt ring(arabic_nam e)
    ..UTF8.getStrin g(arabic_name)

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

    Thanks
  • Rick Rothstein

    #2
    Re: VB.NET garbage characters

    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.publi c.dotnet.genera l
    microsoft.publi c.dotnet.langua ges.vb
    microsoft.publi c.vsnet.general

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

    Rick - MVP



    "mistknight " <webmaster@jsho p.org> wrote in message
    news:6302014c.0 408250431.5907b 282@posting.goo gle.com...[color=blue]
    > 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.Uni codeEncoding object I tried this :
    > .unicode.getStr ing(arabic_name )
    > .UTF8.getString (arabic_name)
    >
    > But nothing's working. Can anyone help me with this?
    >
    > Thanks[/color]

    Comment

    Working...