Images, posts & videos related to "Iso 8859 1"
Hey gang!
I am currently using the following script to display news from my country of Denmark
URL="https://www.dr.dk/nyheder/service/feeds/allenyheder.xml"
maxLength="500"
start="3"
end="9"
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/&lt;/</g' |
sed -e 's/&gt;/>/g' |
sed -e 's/<[^>]*>//g' |
cut -c 1-$maxLength |
head -$end |
sed G |
fmt
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!
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?
I always just choose the UTF-8 one and I'm wondering if I'm missing something.
All is in my title. How can i tell git to keep the default files encoding and to not converting them to utf-8 ?
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
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 :
https://www.dropbox.com/s/cjnr3gbm4cr06u1/encoding.png
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.
Thanks!
Windows 7
Python 2.7
Hi, I'm having a problem when getting text from a webpage, this happens on a few pages.
Example:
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.
$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";
}
I have been using a small script to do some character replacement.
u = codecs.open(filename)
t = u.read().decode('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 = u.read().decode('iso-8859-1')' with an error message:
File "/usr/lib/python3.4/codecs.py", 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.
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:
http://example.com/index?test=r%E9sum%E9
http://example.com/index?test=r%C3%A9sum%C3%A9
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?
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?
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
0000007
$ iconv -f utf-8 -t iso-8859-1 test-utf8 | hexdump
0000000 f8e6 0ae5
0000004
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 "...an 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.
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.