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


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

Re: query db

From Alex <tommaso5ita@yahoo.it>
Newsgroups it.comp.www.php
Subject Re: query db
Date 2016-04-03 18:30 +0200
Organization Netfront http://www.netfront.net/
Message-ID <ndrged$2m40$1@adenine.netfront.net> (permalink)
References (1 earlier) <nd5p61$2hk7$1@adenine.netfront.net> <ndomba$1lvt$1@gioia.aioe.org> <dmao3qFjbctU1@mid.individual.net> <ndqvpf$1lkf$1@adenine.netfront.net> <dmckb9F2tueU1@mid.individual.net>

Show all headers | View raw


Alessandro Pellizzari ha pensato forte :

> Non so se ho capito bene cosa intendi.
hai capito benissimo!
>
> Per il charset sul DB dipende da come l'hai configurato. In PotgreSQL 
> basta selezionare utf8 e metti quello che vuoi, mentre in MySQL devi stare 
> attento perché ce ne sono due: utf8 che non supporta i alcuni caratteri 
> (cinesi, giapponesi, klingon, elfico, ecc.) e utf8mb4 che è il "vero" utf8 
> che supporta tutto.
>
> Una volta che hai uniformato tutto (db, header http, meta charset 
> nell'html, ecc.) a utf8 (quello vero), è esattamente la stessa cosa che 
> con ASCII semplice (se usi *_escape_string() o PDO, appunto).
>
Uniformato tutto. Temevo.
In breve, se inizi un lavoro nuovo puoi facilmente uniformare tutto. Se 
rivedi qualcosa già fatto, con il set di caratteri della tabella del db 
che magari non è quello dell' html incontri delle difficoltà.
Forse per questo è stata prevista l' htmlentities() ?

> Bye.

Bye

-- 
Alex

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

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


Thread

query db "Halnow" <21718invalid@mynewsgate.net> - 2016-03-26 10:04 +0000
  Re: query db Alex <tommaso5ita@yahoo.it> - 2016-03-26 11:44 +0100
    Re: query db Enrico Maria Chellini <bitit@bitit.it> - 2016-04-02 16:52 +0200
      Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-02 20:24 +0000
        Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-03 13:45 +0200
          Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-03 13:32 +0000
            Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-03 18:30 +0200
              Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-03 18:12 +0000
                Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-04 11:05 +0200
  Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-03-26 17:48 +0000

csiph-web