PHP Classes

Special chars encoding

Recommend this page to a friend!

      Karatag Google Maps HTTP Request  >  All threads  >  Special chars encoding  >  (Un) Subscribe thread alerts  
Subject:Special chars encoding
Summary:Short fix for german umlaut chars
Messages:1
Author:Frank Herget
Date:2010-01-24 13:27:20
 

 


  1. Special chars encoding   Reply   Report abuse  
Picture of Frank Herget Frank Herget - 2010-01-24 13:27:20
First of all thanks for this class, just a small update here, as it returns 0 on german umlaut addresses.

function setcode($address = '', $city = '', $country = '', $zip = '') {
$this->address = htmlspecialchars($address, ENT_QUOTES,'utf-8');
$this->city = htmlspecialchars($city, ENT_QUOTES,'utf-8');
$this->country = htmlspecialchars($country, ENT_QUOTES,'utf-8');
$this->zip = $zip;
}

with this fix, you can use things like Münchener Str. etc.