xml - XMLStarlet - UTF-8 Nordic characters -
To use an XMLStarlet (windows) to edit an RSS feed, but the Norwegian letter 'ANSA' There are some issues with.
I am using an example found on this site ()
This is my feed. Xml is (Notepad ++ says it is encoded in UTF-8)
I am not using the following example because it is for Linux script, but my long command line is similar.
# ! / Bin / sh TITLE = "Test Title ÆØÅ" LINK = "http://www.example.com" DATE = "` Saturday, 26 July 2014 01:14:30 + 0200` "xmlstarlet ed -l -a" / / Channel "-tmm-nmad-v" "\ -s" // item [1] "-t emil - t-- v" $ tITLE "\ -s" // item [1] "-t Elem -n link -v "$ LINK" \ -s "// item [1]" -t elem -n pubDate -v "$ DATE" \ -d "// item [condition ()> 10]" Feed .xml;
Windows Command Line (What I'm using):
xml.exe ed -l -a "// channel" -t elem - N item-v "" -s "// item [1]" -t elem -n title -v "test title ÆØÅ" -s "// item [1]" -t elem -n link -v "http: / /www.example.com "-s" // items [1] "-t elem -n pubDate -v" Saturn, 26 July 2014 01:14:30 +200200 "-d" // items [position () > Gt; 10] "feed.xml
'ÆØÅ' is giving me issues when I add another item 'ÆØÅ', ok, the first thing I really have problems Gives up, but not until another item is added Do Uti Generate message:
feed.xml: 8.23: Input is not proper UTF-8, indicate encoding! Bytes: 0xC6 0xD8 0xC5 0x3C: Bytes: 0xC6 0xD8 0xC5 0x3C
Has anybody received any suggestions? I think this is an encoding problem, but I do not understand why feed.xml is UTF-8 and the encoding feed is set to utf-8.
I can confirm the problem XMLStarlet version 1.6.1+ win32 build!
Comments
Post a Comment