Solved

VB.net Display Arabic Characters

Posted on 2010-11-08
11
1,611 Views
Last Modified: 2012-08-13
I have an application originally written in VB6 that properly displayed Arabic characters when running in Vista OS. The application is a front end to either an Access or a SQL Server database. The user can translate the default English text for all text items in the program including Labels, menus, Button text or any screen object text as well as all messagebox text and Crystal Report literal text items. The application was recently rewritten in VB.Net 2005. Now this translated text displays multiple question marks instead of the Arabic characters. The same langauge files are loaded as were with VB6 version of application. What am I missing??
0
Comment
Question by:gcook17
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 34089976
This may be a red herring but it says here that to display them (vb.net) you should load the text into a resource file and read from there. The author has a project you can d/l and view if it helps.
Good luck
0
 

Author Comment

by:gcook17
ID: 34090787
Thank you for your comment. It seems to be loading it but just not displaying it properly.
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 34091002
Are you setting the culture also?
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:gcook17
ID: 34093482
Would setting the culture essentially be the same as setting regional setting in the Control Panel? Or is this a seperate application level setting needed in addition to the windows regional settings?
0
 
LVL 29

Expert Comment

by:QPR
ID: 34095938
is like an on the fly change for the application while it runs, not a thing that effects the whole PC
0
 

Author Comment

by:gcook17
ID: 34096378
OK yes I understand this. The problem is it seems like it would display properly if run on a computer that was configured for Arabic chars. It does not where the VB6 version did. The computer is in use in Egypt. We have also tried in house by confirguring for Arabic through control panel. This also used to work fine in VB6 but does not in .NET 2005.
0
 

Author Comment

by:gcook17
ID: 34096404
BTW: non unicode characters of other languages do display properly in .NET version of application so it seems to be a unicode issue. Would using a Unicode font be required? I have heard that if a font is not selected then OS chooses correct font based upon regional settings.
0
 

Author Comment

by:gcook17
ID: 34133029
I'll try setting culture programmatically rather than using regional setting for entire computer.
0
 
LVL 29

Expert Comment

by:QPR
ID: 34133046
good idea, let us know how you get on
0
 

Author Comment

by:gcook17
ID: 34161486
OK that seems to have done the job. Hre is code:

 My.Application.ChangeCulture("AR-IQ")
 My.Application.ChangeUICulture("AR-IQ")
0
 
LVL 29

Expert Comment

by:QPR
ID: 34161523
Good stuff
0

Featured Post

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question