UJCONV(1p) User Contributed Perl Documentation UJCONV(1p)NAME
ujconv -- reinvented iconv(1) using Unicode::Japanese
SYNOPSIS
ujconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
ujconv -l
ujconv -h
ujconv -V
VERSION
ujconv 0.02
DESCRIPTION
ujconv is an iconv-like tool which is written in perl using Unicode::Japanese.
ujconv reads text from STDIN or files, convert them, and print them to STDOUT.
Available options are as follows. Each options can be in short form (-f) or long form (--from):
-f,--from from_encoding
Convert characters from from_encoding. Unlike iconv this option can be omitted. In that case, the encoding of the input is guessed by
ujconv.
-t,--to to_encoding
Convert characters to to_encoding.
-s,--string string
Input from the argument string instead of file or STDIN.
-l,--list
List all available encodings, one name per each lines.
-h,--help
Print a short help message.
-V,--version
Print the version of ujconv.
SEE ALSO
Unicode::Japanese, piconv(1), iconv(1), ujguess
perl v5.14.2 2008-08-05 UJCONV(1p)
Check Out this Related Man Page
PICONV(1) Perl Programmers Reference Guide PICONV(1)NAME
piconv --iconv(1), reinvented in perl
SYNOPSIS
piconv [-f from_encoding] [-t to_encoding] [-s string] [files...]
piconv -l
DESCRIPTION
piconv is perl version of iconv, a character encoding converter widely available for various Unixen today. This script was primarily a
technology demonstrator for Perl 5.8.0, but you can use piconv in the place of iconv for virtually any case.
piconv converts the character encoding of either STDIN or files specified in the argument and prints out to STDOUT.
Here is the list of options.
-f from_encoding
Specifies the encoding you are converting from. Unlike iconv, this option can be omitted. In such cases, the current locale is used.
-t to_encoding
Specifies the encoding you are converting to. Unlike iconv, this option can be omitted. In such cases, the current locale is used.
Therefore, when both -f and -t are omitted, piconv just acts like cat.
-s string
uses string instead of file for the source of text. Same as iconv.
-l Lists all available encodings, one per line, in case-insensitive order. Note that only the canonical names are listed; many aliases
exist. For example, the names are case-insensitive, and many standard and common aliases work, such as "latin1" for "ISO-8859-1", or
"ibm850" instead of "cp850", or "winlatin1" for "cp1252". See Encode::Supported for a full discussion.
-C N
Check the validity of the stream if N = 1. When N = -1, something interesting happens when it encounters an invalid character.
-c Same as "-C 1".
-p Same as "-C -1".
-h Show usage.
-D Invokes debugging mode. Primarily for Encode hackers.
-S scheme
Selects which scheme is to be used for conversion. Available schemes are as follows:
from_to
Uses Encode::from_to for conversion. This is the default.
decode_encode
Input strings are decode()d then encode()d. A straight two-step implementation.
perlio
The new perlIO layer is used. NI-S' favorite.
Like the -D option, this is also for Encode hackers.
SEE ALSO iconv(1)locale(3) Encode Encode::Supported Encode::Alias PerlIO
perl v5.8.0 2003-02-18 PICONV(1)
Hi,
I have installed the Sun Solaris 8 with Japanese locale. it is able to display the Japanese characters and its environment.
However, I have no idea on how to input or enter Japanese characters into this environment.
Can someone please enligthen me?
Thank you very much and have a... (3 Replies)
I want to use iconv.h to convert some text to another charset.
The code is below:
#include <stdio.h>
#include <stdlib.h>
#include <iconv.h>
int main()
{
iconv_t cd;
char instr="汉字";
char *inbuf;
char *outbuf;
unsigned int insize=7;
... (4 Replies)
Hi,
I'm trying to email from UNIX, a file which has Japanese characters in it (i,e. in the contents -- not the filename).
The file gets emailed, but the Japanese characters do not show up properly when I open the file on Windows in my Outlook mailbox.
I searched a lot of forums but still... (4 Replies)
Hello,
Can any perl experts help me convert my sed string to perl. I am unsuccessful with this.
I have to remove this string from html files OAS_AD('Top');
I have come up with this. However the requirement is in perl.
for find in $(find . -type f -name "file1.html") ; do cat $find |... (2 Replies)
#!/bin/sh
# Solo para Argentina :s
# License: Sisterware
# este script necesita curl e iconv, iconv es porque los del servicio meteorologico no usan utf-8
# 87938 = Ushuaia
# 87934 = Rio Grande
# 87418 = Mendoza
# 87582 = Capital Federal
# 87692 = Mar del Plata
# 87480 = Rosario
#... (1 Reply)
#!/bin/sh
#Argentina Only :s
# This script requires curl and iconv, iconv is because they do not use Weather Service utf-8
# 87938 = Ushuaia
# 87934 = Rio Grande
# 87418 = Mendoza
# 87582 = Capital Federal
# 87692 = Mar del Plata
# 87480 = Rosario
# 87344 = Cordoba
# 87371 = Santa Fe
... (8 Replies)
Hi All,
I am facing problem in sending Japanese characters using mailx command in GNU linux machine.
The mail is going with junk characters like "メールの-界へようこそ".
I tried changing the LANG value to japan locale off UTF-8. But it doesn't worked. I have to send the data as body not as an... (0 Replies)
All,
I have several *.dat files which is created in windows (ANSI Endoing) Or PC File format, once I copy those files to unix.
How can I convert those file to utf8 encoding ?
I tired iconv, it says not supported
Please help
Thanks
- S (5 Replies)
I have googled for weeks now and all I am getting is the same results from frank4dd's notes on setting up perl script to produce alerts in Japanese. On the contrary I wish to ensure all my alerts come in English as primary language. What I am getting from Japanese-language-Windows-machine added... (1 Reply)
I had just added Japanese language as my secondary language with yast and I am still not able to view Japanese characters (they appear mangled)
I've copied two text files from windows to the SUSE Linux Enterprise Server 10 (i586), one with UTF and the other with ANSI. When viewed with cat and... (4 Replies)
I need to convert a utf16 file to utf8. When i use the iconv command to do so it gives an error saying invalid function.
When I ran the iconv -l function it did not list the utf16 and utf8 as part of its internal table. Is there anyway I can add these encodings in the library? Is there any other... (3 Replies)
Hi
I am using iconv command to convert the encoding of files.
Below is the command used:
iconv -f UCS-2 -t UTF-8 inputfile.txt> outputfile.txt
The command is working fine for files less than 2GB.
When I try converting the files of more than 2GB size I get an error as 'Can't open file'. I... (2 Replies)
Hi All,
I am using iconv to convert huge files. the process is getting killed. I tried the option in below link
https://www.unix.com/shell-programming-and-scripting/258825-iconv-large-files.html
i.e
iconv -f UCS-2 -t UTF-8 < inputfile.txt > outputfile.txt
However, the process still gets... (4 Replies)