Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
yakisoba
Joined: Mar 10, 2005
# Posts: 1
|
Posted: 2005-Mar-11 05:05
Im trying to write a simple script that will take multiple byte characters (zenkaku) and convert them into single byte characters (hankaku) using jcode.
Note: Im using a japanese keyboard and OS.
the documentation for jcode.pm is located at [link]
The code that Im trying to write is very basic...
#=============================================================
#!/Perl/bin/perl
#simple string converting program.
#this program will attemt to convert ZENKAKU to HENKAKU
#this code will be executed using command line
use CGI ':standard';
require ( "jcode.cgi" );
$zen = "A";
$han = "A";
#attmepts
#$convert = jcode::z2h_jis($zen);
#$convert = &jcode convert($zen, 'sjis');
print "This is zenkaku: $zenn";
print "This is hankaku: $hann";
print "This should be hankaku: $convertn";
#=====================================================================
As you can see I havnt been able to master the converting part of it...
Im sure my answer is in the documentation I provided above, but I cant seem to make anything work.
any help would be greatly appreciated.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|