473,399 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 2596
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: lkrubner | last post by:
Pierre Goiffon Oct 6 2004, 4:29 am show options Newsgroups: comp.infosystems.www.authoring.html >> The problem with charset UTF-8 on pages with forms for e.g. >> guestbooks, formmail and...
34
by: Ville Voipio | last post by:
I would need to make some high-reliability software running on Linux in an embedded system. Performance (or lack of it) is not an issue, reliability is. The piece of software is rather simple,...
3
by: David Merrick | last post by:
Hi ! can any of you help ? Since datasheets and forms can happily display calculated fields over 255 characters long, I was surprised to discover that the same when read via a DAO recordset...
55
by: jacob navia | last post by:
Tired of chasing free(tm) bugs? Get serious about C and use lcc-win32. The garbage collector designed by Boehm is the best of its class. Very simple: #define malloc GC_malloc #define free(a)...
2
by: Amrit Kohli | last post by:
Hello. I have the following code, to do a simple operation by copying the elements of a vector of strings into an array of char pointers. However, when I run this code, the first element in the...
15
by: vk02720 | last post by:
Hi, I am trying to implement garbage collection for C/C++ mainly for learning purpose. I dont know where to start. For example - Basic questions - How do I identify the variables that contain...
12
by: leonard.guillaume | last post by:
Hi guys, I use dynamic char arrays and I'm trying to get rid of the garbage in it. Let me show you the code and then I'll explain more in details. ...
10
by: Lawrence Krubner | last post by:
Once upon a time, there were no garbage characters on this page: http://www.teamlalala.com/blog/category/css/ Now there are. For instance: The 2nd paragraph from page 114 of “The Zen Of...
0
by: SC5980 | last post by:
Hi, I am having NLS (Native Language support) characters like German , Japanese and chinese text, I am writing the data into the SAP application server. When I open the file with Notepad I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...
0
isladogs
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 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.