- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Character Conversion
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО04-14-2009 06:35 AM
тАО04-14-2009 06:35 AM
Character Conversion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 06:48 AM
тАО04-14-2009 06:48 AM
Re: Character Conversion
I don't know what "postcode data" are.
Are you talking about data in the file, or
file names?
> [...] I'd always used ftp [...]
There are many ways to use FTP. How,
exactly, did you use it? (Who's the client?
Who's the server? What's the FTP software
on the Windows system? Used how, exactly?
...)
> Now however I seem to get them substituted
> [...]
How does this seem to happen? How are you
looking at the file contents (or names?)?
> If I copy this file back [...]
Again, how, exactly?
Are these 16-bit Unicode characters? Which
program on the VMS system knows what those are?
As usual, actual commands with their actual
output can be more informative than vague
descriptions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 07:28 AM
тАО04-14-2009 07:28 AM
Re: Character Conversion
Character mapping can get interesting during a file transfer, as it is distinctly possible that the Microsoft Windows encoding is not getting transferred as expected. There are various ways to translate (and mistranslate) characters.
DUMP the OpenVMS file and see what's encoded in the file on OpenVMS; OpenVMS itself doesn't really know from Unicode or such, so this is usually determined by the application and (in the context of the transfer) the ftp or sftp daemon. On OpenVMS, you'll generally find DEC MCS in the files. (MCS is almost the same as ISO Latin-1, FWIW.)
If you have xxd or such tools available on your Windows box, dump the file over there, too. (If not, go locate a Windows hexadecimal file dump tool. The vim editor port will typically include a version of this tool.)
If this is a case of the display and not characters embedded in the DUMP (as your character references imply), then check the character set setting on your terminal or terminal emulator. Ensure you have eight-bit, and ensure the terminal or terminal emulator has the correct character set for the upper characters. (How to do that depends on what terminal or terminal emulator is in use here.)
Look to use Filezilla or such to perform the transfer as a test, if this is showing up with odd characters in the file, as displayed by DUMP. (the Microsoft Windows command prompt ftp client can have some oddities, but does usually work. I'm guessing the characters in the file are correct, but (short of confirmation using DUMP or such) character translations during the ftp or sftp could be a possibility.
If the above does not answer it, start with posting the DUMP of a small! file, and post up details on the exact symptoms, the terminal or terminal type, and the particular IP stack and version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 06:25 AM
тАО04-15-2009 06:25 AM
Re: Character Conversion
In terms of transferring between systems on one side is an Alpha running VMS 8.3, and on the other a PC with Windows XP pro (although the situation is the same when using a Vista machine rather than XP). The Alpha is running ftp server, and the client on the windows machine can be any of the following, ftp client as part of Reflections for OpenVMS, Ipswitch WS_FTP, or the ftp client within Esker's Smartterm, they all behave the same in this case.
But the precise issue is formally the data was supplied as ISO-8859, and is now supplied as Unicode. It took me a while to get to this point so I apologise for the incomplete/incorrect explanation previously. Using the defaults that any of the above 3 ftp clients install with I used to copy the data to the Alpha. Then using an editor such as TPU I used to see for example ├Г┬д but now see A tilde followed by ascii 164, so that the single character is replaced by a pair of characters.
Is there a simple way of converting or switching it from one to the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 06:31 AM
тАО04-15-2009 06:31 AM
Re: Character Conversion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 08:18 AM
тАО04-15-2009 08:18 AM
Re: Character Conversion
$iconv convert input_file /fromcode=UTF-8 output_file /tocode=ISO8859-1
Obviously the fromcode and tocode need to be what you want. You can see the choices by doing a dir of sys$i18n_iconv: