07-27-2010
My question to the forum is, how to convert this file to a valid XML document type (removing UTF-16 format and make it look like an ordinary file)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a config.xml which cointains the tags like
<CONFIG>
<PROPERTY name="port" value="1111"/>
<PROPERTY name="dbname" value="ABCDE"/>
<PROPERTY name="connectstring" value="xyz/pwd"/>
</CONFIG>
This file is in some directory at UNix box.
I need to write a... (4 Replies)
Discussion started by: neeto
4 Replies
2. AIX
Hello!
The system is AIX 5.3
Give please command or script to get the file encoding (1 Reply)
Discussion started by: vinment
1 Replies
3. Shell Programming and Scripting
Hi,
I am beginner to Unix.
My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8.
Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies
4. Solaris
Hi All,
Hope you can help me with the below :).
I'm working on a script on SUN solaris and I'm facing a problem with the number encoding as shown below,
1 is encoded to 31 (this is ASCII so it's ok)
11 is encoded as B118 !!! don't know why
111 is encoded as B1580C !!! don't know why ... (4 Replies)
Discussion started by: /dev/bag
4 Replies
5. Shell Programming and Scripting
Is there any i can achieve entity escaping, URL escaping & UTF-8 encoded for the xml generated through shell script?
#! /bin/bash
echo "<path>" >> file.xml
for x in `ls filename*`
do
echo -e "\t<dir>" >> file.xml
echo -e "\t\t<file>$x</file>" >> file.xml... (0 Replies)
Discussion started by: vel4ever
0 Replies
6. Programming
Hi everyone, I am trying to access an online XML file, for example: <a href="http://www.rgraph.net/sample.xml" target="_blank">http://www.rgraph.net/sample.xml using HTML.
<html>
<body>
<script type="text/javascript">
if (window.XMLHttpRequest)
{// code for IE7+, Firefox,... (1 Reply)
Discussion started by: Xperia124
1 Replies
7. Shell Programming and Scripting
Dear All,
this is my first post on this Forum, glad to be here.
I'm trying to fix an .ods file. Yes, I had a backup, but it's also corrupted.
When opening the document I get this EM:
read error
format error discovered in the file in sub-document content.xml at
2,337040(row,col).
So I... (3 Replies)
Discussion started by: jameslast
3 Replies
8. Shell Programming and Scripting
Hi I am try to use curl to send a static xml file using url encoding to a web page using post. This has to go through a particular port on our firewall as well. This is my first exposure to curl and am not having much success, so any help you can supply, or point me in the right direction would be... (1 Reply)
Discussion started by: Paul Walker
1 Replies
9. Solaris
Hi all!!
I´m using command file -i myfile.xml to validate XML file encoding, but it is just saying regular file . I´m expecting / looking an output as UTF8 or ANSI / ASCII
Is there command to display the files encoding?
Thank you! (2 Replies)
Discussion started by: mrreds
2 Replies
10. Shell Programming and Scripting
how can i know what format a file is
* example:
UTF-8
ANSI
UCS2
i am in a... (8 Replies)
Discussion started by: tricampeon81
8 Replies
LEARN ABOUT DEBIAN
hxunent
HXUNENT(1) HTML-XML-utils HXUNENT(1)
NAME
hxunent - replace HTML predefined character entities by UTF-8
SYNOPSIS
hxunent [ -b ] [ -f ] [ file ]
DESCRIPTION
The hxunent command reads the file (or standard input) and copies it to standard output with &-entities by their equivalent character
(encoded as UTF-8). E.g., " is replaced by " and < is replaced by <.
OPTIONS
The following options are supported:
-b The five builtin entities of XML (< > " ' &) are not replaced but copied unchanged. This is necessary if the
output has to be valid XML or SGML.
-f This option changes how unknown entities or lone ampersands are handled. Normally they are copied unchanged, but this option
tries to "fix" them by replacing ampersands by &. Often such stray ampersands are the result of copy and paste of URLs into a
document and then this option indeed fixes them and makes the document valid.
DIAGNOSTICS
The program's exit value is 0 if all went well, otherwise:
1 The input couldn't be read (file not found, file not readable...)
2 Wrong command line arguments.
SEE ALSO
asc2xml(1), xml2asc(1), UTF-8 (RFC 2279)
BUGS
The program assumes entities are as defined by HTML. It doesn't read a document's DTD to find the actual definitions in use in a document.
With -f, it will even remove all entities that are not HTML entities.
6.x 10 Jul 2011 HXUNENT(1)