Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1052

Perl to convert normal letter to wide character

$
0
0

How for perl to convert from halfwidth to fullwidth form? In perl's term, from normal character to wide character.

E.g., from !abc ABC! to !abc ABC!.Arithmetically, the following should be correct

binmode STDOUT, ":utf8";$letter = 'A';$lw = chr($letter + 0xfee0);print "Hello $lw ($letter)!\n";

But the print out is not what I was hoping for, which should be Hello A (A)!


Viewing all articles
Browse latest Browse all 1052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>