HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to encode umlauts in XML files using perl ????...
Operating System - HP-UX
1830227
Members
2238
Online
109999
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
Forums
Discussions
Discussions
Discussions
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
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
02-09-2004 12:36 PM
02-09-2004 12:36 PM
How to encode umlauts in XML files using perl ??????
I am using HP OV Service Desk and need to automate the process of entering person records.
OVSD uses XML files as input for the data. I have designed a process that created this XML files, so that I can automate the process, since, it can not be done via the GUI, however, when using input text files that contain umlauts, the umlaut is not encoded on the XML file, and the XML parser breaks the file apart, since it can not match
SOMETHING tags.
For instance, I have a word such as XX-Ã S
( XX-umlaut OS )
The proper formatting of the line on the good XML file is, realised via teh GUI is :
XX-M-CM-^VS
When I format the same file via the perl script, I get :
XX-Ã S
which breaks the parser.
The error is something like this :
XX-
which I can see, is telling the parser that the XML strucutre is not sound.
I am not using and SAX modules or any other perl modules at all on this perl script. The XML structure is VERY simple to recreate, so, I did not need to make this a complicated script. However, I am missing HOW to encode these umlauts in the naked XML file, as you can see how the GUI does on the first example.
Have anyone dealt with this before ? What should I do here ? How do I find out ALL the available umlauts on various languages ? And how do I identify them, so that I can put the proper encoding in place on the XML file ?
I would appreciate any help here. Maybe you can push me in the right direction.
Thanks,
Henrique Sil
OVSD uses XML files as input for the data. I have designed a process that created this XML files, so that I can automate the process, since, it can not be done via the GUI, however, when using input text files that contain umlauts, the umlaut is not encoded on the XML file, and the XML parser breaks the file apart, since it can not match
For instance, I have a word such as XX-Ã S
( XX-umlaut OS )
The proper formatting of the line on the good XML file is, realised via teh GUI is :
When I format the same file via the perl script, I get :
which breaks the parser.
The error is something like this :
which I can see, is telling the parser that the XML strucutre is not sound.
I am not using and SAX modules or any other perl modules at all on this perl script. The XML structure is VERY simple to recreate, so, I did not need to make this a complicated script. However, I am missing HOW to encode these umlauts in the naked XML file, as you can see how the GUI does on the first example.
Have anyone dealt with this before ? What should I do here ? How do I find out ALL the available umlauts on various languages ? And how do I identify them, so that I can put the proper encoding in place on the XML file ?
I would appreciate any help here. Maybe you can push me in the right direction.
Thanks,
Henrique Sil
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2004 12:10 AM
02-11-2004 12:10 AM
Re: How to encode umlauts in XML files using perl ??????
I would probably investigate how to use locales from within Perl. You might be running into a problem when perl tries to encode the character using the default C (posix) locale, which does not have support for internationalized characters.
Perhaps this would be a good starting point for some research:
http://www.perldoc.com/perl5.6/pod/perllocale.html
Perhaps this would be a good starting point for some research:
http://www.perldoc.com/perl5.6/pod/perllocale.html
Necessary questions: Why? What? How? When?
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP