Thread Problem mit encode_entities (4 answers)
Opened by Jan at 2015-09-25 14:56

Raubtier
 2015-09-25 15:41
#182384 #182384
User since
2012-05-04
1055 Artikel
BenutzerIn

user image
Und in welcher Encoding speicherst du das Script?

Wenn du es in utf-8 gespeichert hast, fehlt dir noch ein "use utf8;" im Script.

Schneller test:
Code: (dl )
1
2
3
4
5
6
7
8
9
$ perl -wE'use HTML::Entities; my $title= "ääö"; say encode_entities($title);'
ääö

(ist murks)

$ perl -wE'use utf8; use HTML::Entities; my $title= "ääö"; say encode_entities($title);'
ääö

(sieht gut aus)

View full thread Problem mit encode_entities