Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #20156

Re: utf8_decode -

Path csiph.com!news.mixmin.net!weretis.net!feeder4.news.weretis.net!storethat.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 19 Dec 2015 12:53:55 GMT
Lines 18
Message-ID <ddl2b3Fc4fqU2@mid.individual.net> (permalink)
References <gXAcy.37910$pt.21996@tornado.fastwebnet.it> <ddhsdnFi0u1U1@mid.individual.net> <PEYcy.37959$pt.31458@tornado.fastwebnet.it>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net BifyJmXWABsGqcbSMhgPiwHU586prr6VCXbaiOcZi444WchQs=
Cancel-Lock sha1:j1qsuHq6tAtjTZaoUGN1pGzg/nY=
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Xref csiph.com it.comp.www.php:20156

Show key headers only | View raw


Il Fri, 18 Dec 2015 19:55:43 +0100, leonardo.1+++ ha scritto:

> Ho una stringa con dentro dei caratteri accentati e voglio vengano visti
> accentati.
> Fra l'altro mi da dei problemi con gli apostrofi.
> Mi consigli qualche link?

Purtroppo in informatica non esiste "una stringa con caratteri accentati", 
ma solo "una stringa codificata con un certo charcode".

Devi scoprire come è codificata la tua stringa, poi scoprire come è 
codificato il tuo output, e infine, se necessario, convertire l'input 
nell'output.

Se la stringa è latin1 e l'output è utf8, puoi usare utf8_encode() (non 
decode) che è safe. Se non hai esattamente questa combinazione, usa iconv.

Bye.

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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