// you’re reading...

News

Bug Risolto

Il bug che affliggeva il nostro sito delle lettere accentate è stato debellato :)
Per dimostrarvelo :

à è é ì ò ù # ç @

come volevasi dimostrare tutto OK!
per risolvere ho usato il seguente TIP all’internno del file evocore/_item.class.php:

$trans = get_html_translation_table(HTML_ENTITIES);
unset($trans[' > ']);
unset($trans[' < ']);
$encoded = strtr(format_to_post( $Request->get('content') ), $trans);
$this->set( 'content',$encoded )

e per il decode

$this->content = html_entity_decode($db_row->$db_cols['content']);
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Technorati
  • TwitThis

Discussion

Comments are disallowed for this post.

Comments are closed.