Hi,

it´s a long time, but I also have problems with german umlaut - for me I 
have the solution, I hope it is also yours.

The problem is that if you have an umlaut such as in Münster the urlencode 
converts this not compatible to vcard. In vcard you will see Münster, 
but vcard needs ü not converted. You need a decimal unicode. So an ü must 
become ß
See on this site: http://andrewu.co.uk/tools/uriencoder/

Ok, my solution: I get my content from database

<?php 
$text =  htmlentities($row->name);
// htmlentities macht aus Umlauten &auml; usw.
// vcard will aber einen dezimal Unicode also &#228; für das ä
// wandelt ä,ö,ü,ß,A,Ö,Ü um

$von = 
array("&auml;","&ouml;","&uuml;","&szlig;","&Auml;","&Ouml;","&Uuml;");
$zu  = 
array("&#228;","&#246;","&#252;","&#223;","&#196;","&#214;","&#220;");
$text = str_replace($von, $zu, $text); 

$vcard = 'BEGIN:VCARD
VERSION:2.1
N:' . $text . '
TEL;WORK;VOICE:' . $row->telefon . '
TEL;MOBILE;VOICE:' . $row->mobil . '
EMAIL;PREF;INTERNET:' . htmlentities($row->email) . '
URL:' . htmlentities($row->web) . '
END:VCARD';
$vcard = urlencode($vcard);
?>
<img 
src="https://chart.googleapis.com/chart?chs=200x200&amp;cht=qr&amp;chl=<?=$vcard?>&amp;choe=UTF-8"
 
>

This works fine for me . if somebody knows an other method please reply 
here.

I hope this helps!

best regards
Guenter

On Friday, October 8, 2010 3:39:25 PM UTC+2, Cat wrote:
>
>
> Hi Ed, 
>
> Try those two and see how the code shrinks to blank: 1st is with o 2nd 
> is with %F6 instead of the last o: 
>
>
> http://chart.apis.google.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl=Rangger%20KpflRangger%20KpflRangger%20Kopfl
>  
>
>
> http://chart.apis.google.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl=Rangger%20KpflRangger%20KpflRangger%20K%F6pfl
>  
>
> On 7 Okt., 13:05, Edward Tufte Fan <[email protected]> wrote: 
> > Hi, 
> > Can you send me the URL that generates a blank QR image ? 
> > The url you have sent below returns a good image for me. 
> > 
> > --EdOn Wed, Oct 6, 2010 at 1:29 PM, Cat <[email protected]> wrote: 
> > > I seem to have found a bug in the charts QR Code Api: Including any 
> > > Umlaut seems to deliver a blank QR Code image. In this example it is a 
> > > %6F char. Wether this can be transfered at all in the code may be 
> > > worth a discussion, although Japanese chars seem to work, too. 
> > 
> > >http://chart.apis.google.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl=... 
>
> > 
> > > -- 
> > > You received this message because you are subscribed to the Google 
> Groups 
> > > "Google Chart API" group. 
> > > To post to this group, send email to 
> > > [email protected]<javascript:>. 
>
> > > To unsubscribe from this group, send email to 
> > > [email protected] <javascript:><
> google-chart-api%[email protected] <javascript:>> 
> > > . 
> > > For more options, visit this group at 
> > >http://groups.google.com/group/google-chart-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to