m.444lu.co show.php,PHP生成的Vcard:更改字符編碼,可以顯示重音字符。

我使用一個PHP類來生成vcard: http://www.troywolf.com/articles/php/class_vcard/。

But accented character do not show properly. I guess this is related to the character encoding, but I have been unable to find a way to change it.

但有重音的角色沒有表現得很好。我想這與字符編碼有關,但我一直找不到方法來改變它。

All my files are saved as UTF8 without BOM and here is what the outpout of the script looks like:

我所有的文件都保存為UTF8,沒有BOM,下面是腳本的輸出:

BEGIN:VCARD

VERSION:3.0

CLASS:PUBLIC

PRODID:-//www.bla.com//Version 1//EN

REV:2011-08-30 03:19:49

FN:Heïdi DABODFE

N:DABODFE;Heïdi;;;

TITLE:Directrice

ORG:blablabla

ADR;TYPE=work:;;2 Imp. Les Plataness;Mirepoix;;09500;France

EMAIL;TYPE=internet,pref:[email protected]

TEL;TYPE=work,voice:05 61 68 64 38

PHOTO;ENCODING=BASE64;TYPE=JPEG:

/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkc

gSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCA

wKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LD

RQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgA

YABgAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwM

CBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJS

YnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVl

peYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh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