HINDI(DEVANAGARI SCRIPT) IN ARRAY USING UNICODE

General discussion about C/C++

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

HINDI(DEVANAGARI SCRIPT) IN ARRAY USING UNICODE

Postby ankurkhanna145 » Fri Nov 09, 2012 1:07 am

how can HINDI be possibly used as an input to an ARRAY in dev c++ with the help of UNICODE?
i tried to give input to the array with the help of a file but it only returned garbage values.
kindly reply
ankurkhanna145
 
Posts: 2
Joined: Fri Nov 09, 2012 12:56 am

Re: HINDI(DEVANAGARI SCRIPT) IN ARRAY USING UNICODE

Postby exomo » Fri Nov 09, 2012 1:50 am

You can use Unicode characters in a cpp file directly. Just use the wchar_t datatype and prefix char literals with L.
Code: Select all
wchar_t array[] = {L'ऄ', L'अ'};


File in/output: http://www.codeproject.com/Articles/456 ... se-Unicode

If that is not you problem please explain your problem more precisely and give an example of the code that does not work as expected.
Who needs a signature anyway.
User avatar
exomo
 
Posts: 867
Joined: Fri Sep 26, 2003 12:30 pm
Location: germany->baden

Re: Happy Wheels online

Postby Vishal23 » Wed Nov 08, 2017 3:25 am

Hey Guys, Here we are going to provide you the best website for play happy wheels free online games and these games are amazing games which can be played online without facing any type of error or hurdle. You can play these games with the help of keys and also you can improve your skills. Try out these games for once.
Vishal23
 
Posts: 3
Joined: Wed Aug 23, 2017 2:02 am


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron