473,395 Members | 1,460 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,395 software developers and data experts.

MS Access VBA unicode language strings change into meaningless characters.

99 64KB
In MS Access, when coding in VBA to show a string of any Unicode language (e.g., Arabic or Urdu, Persian, etc.) in a message box or textbox, it is changed into a strange language, e.g., پندرہ مارچ، دو ہزار پانچ-. Is there any solution for this other than going to settings/control panel and setting an alternate language for non-Unicode languages?
Sep 7 '20 #1
6 4384
SioSio
272 256MB
Microsoft Office supports Unicode, but VB Editor (VBE) does not.
ChrW (charcode) function has no choice but to convert it for each character.
Sep 9 '20 #2
SwissProgrammer
220 128KB
SioSio, what version of VBE are you referring to? Does this apply to all of the VBE versions?

I thought that I was able to do this in VB6 sp5, but from your answer I am not certain what you are talking about. Maybe VB6 and VBE are different? I have not used VB6 in a long time and now I am wondering what you are talking about.

Thanks.
Sep 24 '20 #3
SioSio
272 256MB
Hi SwissProgrammer.

Visual Studio and VBE are not related.
VBE (Visual Basic Editor) is an integrated development environment software for creating VBA (Visual Basic for Applications) for Ofiice applications.
Sep 24 '20 #4
twinnyfo
3,653 Expert Mod 2GB
All,

I've been working with Unicode in a project related to the Greek New Testament. I cannot use Unicode in the VBE--nor even in VBA--I must always make references to variables which have been saved in a table, make my comparisons and manipulations using the ChrW() function and then save directly back to the Table.

It is a round-about way of doing things, but it is the only way to work with Unicode in VBA/Access.

Hope this hepps!
Sep 24 '20 #5
SwissProgrammer
220 128KB
Thanks SioSio.

I do not think that I ever used the VBE for VBA. I think that I recall just writing in VB6 then when I got the program done I converted to VBA, or used it as-is instead of VBA. Your way sounds easier. I will try to remember it if I have to use VBA again.

mshakeelattari, I think that twinnyfo has the first part of your answer, then use that with SioSio's guidlines but maybe try to write it in VB6. VB6 works natively in Unicode. All text that you work with in VB6 is converted to Unicode then that is used via unicode then the result is reconverted to your chosen code-page. I think that you have your answer in those posters, but you might have some work to do.

If all this fails, then an option that I used to use was to use VB6 to subclass the difficult program, then control it via the VB6 program.

If you want to see the Unicode that VB6 is sending to you, then use a RichTextBox. You might have to learn how to parse rtf, but I found it worth the effort. ????? in a text box vs the correct hiragana or katakana or etc. characters in a RTF box is better.

If you want to try that, then see my article at https://bytes.com/topic/software-dev...ow#post3828472 for some general ideas.

幸運を
Sep 25 '20 #6
Visual Studio and VBE are not related.Visual Basic for Applications is a software development environment that can be integrated to create VBA Visual Basic for Applications for Office applications.
Sep 26 '20 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jacob Friis | last post by:
I'm trying to learn Python via Marks Feedparser. <snip src="http://feedparser.org/docs/character-encoding.html"> If the character encoding can not be determined, Universal Feed Parser sets the...
3
by: Petr Prikryl | last post by:
Hi all, My question is: How do you tackle with mixing Unicode and non-Unicode parts of your application? Context: ======== The PEP 3000 says "Make all strings be Unicode, and have a...
1
by: Dennis Benzinger | last post by:
Is there a library with a strftime replacement which supports Unicode format strings? Bye, Dennis
8
by: DierkErdmann | last post by:
Hi ! I know that this topic has been discussed in the past, but I could not find a working solution for my problem: sorting (lists of) strings containing special characters like "ن", "ü",......
14
by: Zoro | last post by:
My task is to read html files from disk and save them onto SQL Server database field. I have created an nvarchar(max) field to hold them. The problem is that some characters, particularly html...
56
by: Adem | last post by:
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" The C++ Standard (ISO/IEC 14882, Second edition, 2003-10-15) says under...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.