Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    problema con visualizzazione caratteri speciali

    salve a tutti ho un sito che registra delle news dinamicamente sul un database con tale funzione:

    $testo = urlencode(stripslashes(htmlentities($testo)));

    e le riprende cosi:

    echo urldecode(html_entity_decode($row[testo],ENT_COMPAT));

    ma quando inserisco dei valori tipo: ōāųč... questi non mi vengono registrati e di conseguenza in output non mi compaiono.

    Come posso ovviare?

  2. #2

    .............

    htmlentities($var, ENT_COMPAT, 'UTF-8');

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  3. #3
    questo lo devo inserire quando registro i dati o quando li visualizzo????

  4. #4

    ............

    questo lo devo inserire quando registro i dati o quando li visualizzo
    Se usi un DB/flat file dopo se usi XML prima

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.