Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

yakisoba
Joined: Mar 10, 2005
# Posts: 1

View the profile for yakisoba Send yakisoba a private message

Posted: 2005-Mar-11 05:05
Edit Message Delete Message Reply to this message

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:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. 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

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions