in reply to Re: How to support Unicode for Embeded Perl
in thread How to support Unicode for Embeded Perl

Thanq for ur prompt response...What u have seen the characters are not exact(those are Japanese characters of Hello)...this browser doesn't show exactly what i have typed/copied...For getting the right characters please use online translators(http://babelfish.altavista.com/) Please refer the following for "Embeding Perl interpreter in C program" http://72.14.235.104/search?q=cache:ycFwwiAguTgJ:search.cpan.org/perldoc%3Fperlembed+embeded+Perl&hl=en&ct=clnk&cd=3&gl=in we define some API for our application. For print in perl, we have "DispText". In sample.pl contains the following ShowText("こんにちは"); # print "Hello"; After parsing the pl file, that string should be stored in wchar* variable which will be displayed by my vc++ application.When it is parsed I'm not getting the exact unicode characters through the following functions. bytes_to_utf8((U8*)SvPV(ST(0), Len), &Len); or sv_utf8_upgrade(ST(0)); Regards, nag
  • Comment on Re^2: How to support Unicode for Embeded Perl