Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Displaying Korean text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ghanashyam - 25 Aug 2006 06:13 GMT
In a windows form application(C#) I have to support international font(say
Korean)
For this application uses a resource file that contains korean text.

I set the current UI culture as below
// Override the default user culture with the neutral culture
System.Threading.Thread.CurrentThread.CurrentUICulture =
System.Threading.Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo(""); // Force the default culture

string NewCulture = Console.ReadLine();

// Switch to the desired culture
c = new System.Globalization.CultureInfo(NewCulture, false);
System.Threading.Thread.CurrentThread.CurrentUICulture = c;

Then using Resource Manager I retrive the data from resource and try to print
// Get a resource manager
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager("HelloWorld.Resources.MyResources",
System.Reflection.Assembly.GetExecutingAssembly());

// Print out the "HelloWorld" resource string
Console.WriteLine(resources.GetString("HelloWorld"));

It seems instaed of printing Korean text it prints ??????
However in the debugger I could able to see the Korean text.
ANy help in this regard is highly appreciated.
Thanks.
simida - 25 Aug 2006 09:16 GMT
I think you should set Console current code page If you want to output
text in the console window.

Hope it works.

> In a windows form application(C#) I have to support international font(say
> Korean)
[quoted text clipped - 25 lines]
> ANy help in this regard is highly appreciated.
> Thanks.
Ghanashyam - 29 Aug 2006 05:47 GMT
How to do that ? Could you pl.provide the syntax.

> I think you should set Console current code page If you want to output
> text in the console window.
[quoted text clipped - 30 lines]
> > ANy help in this regard is highly appreciated.
> > Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.