Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #20154
| Path | csiph.com!au2pb.net!feeder.erje.net!2.eu.feeder.erje.net!ecngs!testfeeder.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!feedme.news.telefonica.de!telefonica.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Alessandro Pellizzari <shuriken@amiran.it> |
| Newsgroups | it.comp.www.php |
| Subject | Re: utf8_decode - |
| Date | 18 Dec 2015 07:54:31 GMT |
| Lines | 23 |
| Message-ID | <ddhsdnFi0u1U1@mid.individual.net> (permalink) |
| References | <gXAcy.37910$pt.21996@tornado.fastwebnet.it> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net BBc/YRJjFwkudeR+hH8DIgduPlPY4/QGO8bOCrpAR6Ug2WPFQ= |
| Cancel-Lock | sha1:edh6fAxPNNIv3vDQwNBxLtPzHCA= |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Xref | csiph.com it.comp.www.php:20154 |
Show key headers only | View raw
Il Thu, 17 Dec 2015 16:57:01 +0100, leonardo.1+++ ha scritto:
> Se io uso questo metodo:
> $Testo = utf8_decode("Un giorno senza un sorriso è un giorno perso");
> eccessiva quantità di caratteri, ma come posso ovviarvi?
Semplice: non usare utf8_decode. :)
È una delle funzioni che andrebbero rimosse da PHP, e speravo lo facessero
con la 7, ma troppa gente la usa senza sapere cosa fa e avrebbero rotto il
70% di Internet.
utf8_decode cerca di trasformare un testo in utf8 in un testo in latin1.
Naturalmente siccome latin1 supporta 255 caratteri e utf8 qualche milione,
poi la gente si lamenta che ha i cubetti neri sul browser.
Il tuo testo è in utf8? Perché ti serve trasformarlo in latin1?
E in ogni caso, iconv è sempre meglio, almeno devi essere esplicito in
quello che chiedi.
Bye.
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-17 16:57 +0100
Re: utf8_decode - fmassei@gmail.com - 2015-12-17 08:15 -0800
Re: utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-17 18:03 +0100
Re: utf8_decode - fmassei@gmail.com - 2015-12-17 09:06 -0800
Re: utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-17 19:55 +0100
Re: utf8_decode - fmigliori <fmigliori@gmail.com> - 2015-12-17 11:45 -0800
Re: utf8_decode - Alessandro Pellizzari <shuriken@amiran.it> - 2015-12-18 07:54 +0000
Re: utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-18 19:55 +0100
Re: utf8_decode - Alessandro Pellizzari <shuriken@amiran.it> - 2015-12-19 12:53 +0000
Re: utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-19 15:55 +0100
Re: utf8_decode - Alessandro Pellizzari <shuriken@amiran.it> - 2015-12-19 15:09 +0000
Re: utf8_decode - "leonardo.1+++" <leonardo.1@fastwebnet.it> - 2015-12-19 17:01 +0100
Re: utf8_decode - Leonardo Serni <lserni@gmail.com> - 2015-12-19 17:42 +0100
csiph-web