- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- iconv command
Operating System - HP-UX
1753838
Members
9485
Online
108806
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2007 04:13 AM
тАО10-04-2007 04:13 AM
iconv command
Hi Guys,
I'm tryng to run the commad below, but the system is given me an error:
#iconv -f cp1252 -t iso81 arq.txt > new-arq.txt
iconv: can not initialize the conversion
Any idea?
I'm tryng to run the commad below, but the system is given me an error:
#iconv -f cp1252 -t iso81 arq.txt > new-arq.txt
iconv: can not initialize the conversion
Any idea?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2007 04:18 AM
тАО10-04-2007 04:18 AM
Re: iconv command
Check for any special symbols in input file.
From iconv man - http://www.docs.hp.com/en/B9106-90007/iconv.1.html
If an input character does not belong to the code set selected by the -f option (the "from" code set), the command terminates.
regards,
ivan
From iconv man - http://www.docs.hp.com/en/B9106-90007/iconv.1.html
If an input character does not belong to the code set selected by the -f option (the "from" code set), the command terminates.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2007 05:40 AM
тАО10-04-2007 05:40 AM
Re: iconv command
Hi,
The codes cp1252 and iso81 are configured in file /usr/lib/nls/iconv/config.iconv.
Do I have to do anything else to get this conversion working?
thanks.
The codes cp1252 and iso81 are configured in file /usr/lib/nls/iconv/config.iconv.
Do I have to do anything else to get this conversion working?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2007 09:00 PM
тАО10-22-2007 09:00 PM
Re: iconv command
>The codes cp1252 and iso81 are configured in file /usr/lib/nls/iconv/config.iconv.
>Do I have to do anything else to get this conversion working?
I believe you can only convert from A to B if both of those are on the same line. For your two:
$ grep ^cp1252 /usr/lib/nls/iconv/config.iconv
cp1252 ucs2 cp1252=ucs2 lsbucs2.sl
cp1252 utf8 cp1252=ucs2 lsbutf8.sl
$ grep " iso81 " /usr/lib/nls/iconv/config.iconv
(The above has tabs before and after.)
...
ucs2 iso81 ucs2=iso81 lucs2hp.sl
utf8 iso81 ucs2=iso81 lutf8hp.sl
So you would need:
$ iconv -f cp1252 -t ucs2 arq.txt |
iconv -t iso81 -f ucs2 > new-arq.txt
>Do I have to do anything else to get this conversion working?
I believe you can only convert from A to B if both of those are on the same line. For your two:
$ grep ^cp1252 /usr/lib/nls/iconv/config.iconv
cp1252 ucs2 cp1252=ucs2 lsbucs2.sl
cp1252 utf8 cp1252=ucs2 lsbutf8.sl
$ grep " iso81 " /usr/lib/nls/iconv/config.iconv
(The above has tabs before and after.)
...
ucs2 iso81 ucs2=iso81 lucs2hp.sl
utf8 iso81 ucs2=iso81 lutf8hp.sl
So you would need:
$ iconv -f cp1252 -t ucs2 arq.txt |
iconv -t iso81 -f ucs2 > new-arq.txt
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP