Bugster
Bugster

Reputation: 1594

Is there a way to use foreign language characters in my application?

I'm working on a windows forms application in Visual Studio 2010 C++, and I wish to distribute this application once I"m done with it. I figured writing it in my own language, but I have characters such as these -> { ă, ş, ţ } amongst many more. I can't use them in elements such as labels, etc without receiving errors.

Is there any work around this? I've seen C++ applications written in my native language with those characters but I can't figure it out.

Upvotes: 0

Views: 219

Answers (2)

BlueWanderer
BlueWanderer

Reputation: 2691

The dialog you get is not prompting you an error. Click OK and the source file will be saved in UTF8 format that can fit any locale.

And beware that you better not use multi-byte character set, or you will see funny characters on your buttons or labels or so.

Upvotes: -1

Julien Lebot
Julien Lebot

Reputation: 3092

You have to use localization for that. I see you are using C++ with Windows forms so you must be using .Net with C++/Cli.

In that case you can start with "How to: Set the Culture and UI Culture for Windows Forms Globalization" and "Walkthrough: Localizing Windows Forms".

Those are in VB/C# but you should have no trouble converting them to C++/Cli.

Upvotes: 2

Related Questions