News script UTF-8 to ISO_8859-1?

Hey gang!

I am currently using the following script to display news from my country of Denmark


curl --silent "$URL" |
sed -e :a -e '$!N;s/\n//;ta' |
sed -e 's/<title>/\
<title>/g' |
sed -e 's/<\/title>/<\/title>\
/g' |
sed -e 's/<description>/\
<description>/g' |
sed -e 's/<\/description>/<\/description>\
/g' |
grep -E '(title>|description>)' |
sed -n "$start,$"'p' |
sed -e 's/<title>//' |
sed -e 's/<\/title>//' |
sed -e 's/<description>/   /' |
sed -e 's/<\/description>//' |
sed -e 's/<!\[CDATA\[//g' |
sed -e 's/\]\]>//g' |
sed -e 's/</</g' |
sed -e 's/>/>/g' |
sed -e 's/<[^>]*>//g' |
cut -c 1-$maxLength |
head -$end |
sed G |

Unfortunately, I am missing the three special characters in our language (Γ¦ ΓΈ Γ₯) for the feed to make any sense. It looks like the GeekTool script doesn't support ISO_8859-1, but I've read a little about being able to use something called iconv to make it work.

Can somebody please help me with this? :) Thanks!

πŸ‘︎ 5
πŸ“°︎ r/GeekTool
πŸ‘€︎ u/ShortyDK
πŸ“…︎ Nov 25 2020
🚨︎ report
xTeVe xml loading error (xml: encoding "ISO-8859-1" declared but Decoder.CharsetReader is nil)

I have an xml file created by zap2xml that works in other environments, but I get this error when trying to load it into xTeVe:

xml: encoding "ISO-8859-1" declared but Decoder.CharsetReader is nil

Any suggestions on what I can do to remedy this?

πŸ‘︎ 8
πŸ“°︎ r/PleX
πŸ‘€︎ u/01_Time
πŸ“…︎ Jan 02 2020
🚨︎ report
Saamenkielisen nimen yhtΓ€ kirjainta ei saatu oikein passiin. VΓ€estΓΆrekisterikeskus joutunee pΓ€ivittΓ€mÀÀn jΓ€rjestelmΓ€nsΓ€ ISO 8859-1 merkistΓΆstΓ€ UTF-8 merkistΓΆΓΆn.…
πŸ‘︎ 65
πŸ“°︎ r/Suomi
πŸ‘€︎ u/Sampo
πŸ“…︎ Jun 12 2018
🚨︎ report
I don't speak ISO 8859-1
πŸ‘︎ 106
πŸ“°︎ r/TechNope
πŸ‘€︎ u/Pandalism
πŸ“…︎ Jul 02 2019
🚨︎ report
Should I install the en_US ISO-8859-1 locale?

I always just choose the UTF-8 one and I'm wondering if I'm missing something.

πŸ‘︎ 6
πŸ“°︎ r/linuxquestions
πŸ‘€︎ u/b7gCeIyS
πŸ“…︎ Aug 25 2019
🚨︎ report
Elixir and my ISO-8859-1 character encoding problem…
πŸ‘︎ 8
πŸ“°︎ r/elixir
πŸ‘€︎ u/zenw0lf
πŸ“…︎ Apr 26 2018
🚨︎ report
UPS triple encoding fail: wrongly interpreting UTF-8 as ISO-8859-1 encoding it wrongly into HTML escape sequences and not rendering the HTML correctly (found at )
πŸ‘︎ 73
πŸ“°︎ r/ProgrammerHumor
πŸ‘€︎ u/datenwolf
πŸ“…︎ Feb 14 2013
🚨︎ report
How to process xml with invalid utf-8 bytes in Go including ISO 8859 1 encodings…
πŸ‘︎ 7
πŸ“°︎ r/golang
πŸ‘€︎ u/dgryski
πŸ“…︎ Oct 15 2016
🚨︎ report
There are only 17,576 three-letter acronyms. (Also, ESR's version of the Jargon File is encoded in Windows-1252 mislabeled as ISO-8859-1.)…
πŸ‘︎ 26
πŸ‘€︎ u/Kodiologist
πŸ“…︎ Nov 18 2015
🚨︎ report
Svn-git svn file use iso-8859-1 and git convert them to utf-8

All is in my title. How can i tell git to keep the default files encoding and to not converting them to utf-8 ?

πŸ‘︎ 3
πŸ“°︎ r/git
πŸ‘€︎ u/Ouraios
πŸ“…︎ Aug 19 2016
🚨︎ report
deluge rss feed error: document declared as us-ascii, but parsed as iso-8859-1

i'm using yarss2 to manage feed rss with deluge. i've a feed that it gives me this error "document declared as us-ascii, but parsed as iso-8859-1 " so i set regex to download some files,yarss2 match it but deluge downloads nothing. how can i fix this error? thanks

πŸ‘︎ 3
πŸ“°︎ r/torrents
πŸ‘€︎ u/tafazzi87
πŸ“…︎ Oct 16 2014
🚨︎ report
Receiving attachments in ISO-8859-1 format with mail.

I have this weird issues on my brand new Macbook Air. I have google apps and some of the emails attachments I receive seems to be in a ISO-8859-1 format and the extension is changed on mail.

In gmail webmail, the attachments is in the correct format.

Example : Γ‰te_2010.docx become ISO-8891-1?Q?te...docx?=

See the dropbox link for more examples :

It seems to do this only on attachment with special characters and from certains users (not all my incoming emails do this). The first attachment is always in the good format, if there is more than one attachments, the others seems to change format.

I switched from a 2010 MacBook Pro and mail wasn't doing this.


πŸ‘︎ 6
πŸ“°︎ r/applehelp
πŸ‘€︎ u/metraon
πŸ“…︎ Aug 12 2014
🚨︎ report
Beautiful Soup cannot decode ISO-8859-1

Windows 7

Python 2.7

Hi, I'm having a problem when getting text from a webpage, this happens on a few pages.


Chapter 1: Battle Wounds

Appears as:

Chapter 1:Γ‚ Battle Wounds

I got the encoding of the page using requests and it lists it as ISO-8859-1.

I've tried re-encoding it as Utf-8 but get:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 336: ordinal not in range (128)

I've had this happen on another site using apparently the same encoding.

Edit: If I change the encoding to 'utf-8' in chrome it appears properly, but not when I change the encoding using Requests.

πŸ‘︎ 3
πŸ“°︎ r/learnpython
πŸ‘€︎ u/DAsSNipez
πŸ“…︎ Aug 29 2013
🚨︎ report
I want to generate all the characters from the ISO-8859-1 character encoding set encoded as UTF-8. Will this code work? Or there are better (or correct) ways to do it?
$end = 255;

for($i = 0; $i <= $end; $i++) {
    $character = utf8_encode(pack('C', $i));
    echo $character, ' ', $i, "\n";
    echo mb_check_encoding($character, 'UTF-8') ? "valid UTF-8" : "not valid UTF-8", "\n";
πŸ‘︎ 12
πŸ“°︎ r/PHP
πŸ‘€︎ u/ricardo_sdl
πŸ“…︎ Jun 06 2013
🚨︎ report
I'm Chinese. My name somehow converts to a completely intelligible sentence in ISO 8859-1 (Latin 1) code.
πŸ‘︎ 9
πŸ‘€︎ u/fall_ark
πŸ“…︎ Oct 25 2015
🚨︎ report
Error decoding iso-8859-1 (Latin1) text file. (python3.4)

I have been using a small script to do some character replacement.

u =

t ='iso-8859-1')

t = t.replace('ΒΊ', 's') .

Still works on Ubuntu 12.04 flavor, python 3.2.

Now, if I try to run it on 14.04, python3.4, it quits at 't ='iso-8859-1')' with an error message:

File "/usr/lib/python3.4/", line 319, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 55: invalid continuation byte

Any ideas what is different between 3.2 and 3.4?

Edited a few letters.

πŸ‘︎ 3
πŸ“°︎ r/learnpython
πŸ‘€︎ u/bluegarlic
πŸ“…︎ Dec 01 2015
🚨︎ report
VHDL file encoding, UTF-8 or ISO-8859-1?…
πŸ‘︎ 5
πŸ“°︎ r/FPGA
πŸ‘€︎ u/oelang
πŸ“…︎ Jan 26 2017
🚨︎ report
JEP254: proposal to represent Java Strings as ISO-8859-1
πŸ‘︎ 2
πŸ“°︎ r/hackernews
πŸ‘€︎ u/qznc_bot
πŸ“…︎ May 15 2015
🚨︎ report
Will a URL always be encoded in either ISO-8859-1 or UTF-8 or can it be encoded in something else?

Although this is a PHP question, it could certainly apply to other languages, which is why I'm posting in this subreddit.

Consider these two URLs:

Unless I'm mistaken, the top one is encoded in ISO-8859-1 and the bottom in UTF-8. I'm not sure about other languages, but in PHP, this has potential to cause problems. Here is one fix:

$_GET['test'] = mb_convert_encoding($_GET['test'], 'UTF-8', 'UTF-8, ISO-8859-1');

Is there any way the above fix could ever fail?

πŸ‘︎ 9
πŸ“°︎ r/webdev
πŸ‘€︎ u/nrogers64
πŸ“…︎ Nov 10 2011
🚨︎ report
How do I convert a MySQL query string from UTF-8 to ISO-8859-1?

Hello /r/PHPhelp,

I was wondering if there is a way to output text from a MySQL query that is UTF-8 and to print it on a web page as ISO-8859-1?

πŸ‘︎ 3
πŸ“°︎ r/PHPhelp
πŸ‘€︎ u/darkishdave
πŸ“…︎ Nov 14 2012
🚨︎ report
Prevent urxvt from printing ISO-8859-1 characters?

I've got a "problem" with urxvt - despite using a UTF-8 LC_CTYPE locale, ISO-8859-1 characters are printed just fine. In xterm, non-valid UTF-8 is simply printed as blocks with question marks in them.

This gets really annoying because I often want to know right away if a file or some other output isn't UTF-8. Today I spent 5 minutes looking for subtle differences in two outputs when it turns out it was the encoding all along.

Is there some way to disable this "feature", preferably permanently?

$ cat test-utf8 

$ iconv -f utf-8 -t iso-8859-1 test-utf8 

$ cat test-utf8 | hexdump 
0000000 a6c3 b8c3 a5c3 000a                    

$ iconv -f utf-8 -t iso-8859-1 test-utf8 | hexdump 
0000000 f8e6 0ae5                              
πŸ‘︎ 5
πŸ“°︎ r/urxvt
πŸ‘€︎ u/anlutro
πŸ“…︎ Aug 26 2015
🚨︎ report
πŸ‘︎ 6
πŸ“°︎ r/softwaregore
πŸ‘€︎ u/GranPC
πŸ“…︎ Apr 16 2014
🚨︎ report
=?iso-8859-1?q?THIS_WEEK=3A_Dr=2E_Peter_Fr=F6hlich?= =?iso-8859-1?q?_on_Go?=

This week, Peter will be talking about Go, a language developed by Google and released in 2009. In his own words, "Watch Peter fumble through the official Go tutorial right in front of you. He might even be partially awake."

[image: Inline image 1]

Go is described on its website as being " open source programming environment that makes it easy to build simple, reliable, and efficient software."

So come by Shaffer 100 at 6pm! Milk and cookies will be provided.

  • Your Simple, Reliable, and Efficient Chair Mango
πŸ‘︎ 2
πŸ“°︎ r/jhuacm
πŸ‘€︎ u/jhuacm
πŸ“…︎ Apr 18 2013
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.