betonme / gcalbirthdays

Automatically exported from code.google.com/p/gcalbirthdays
0 stars 0 forks source link

Umlauts are not preserved #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a Contact that contains an Umlaut (e.g. "Müller")
2. Export the Birthday with this script
3. Watch out for the title of the birday event in the calendar

What is the expected output? What do you see instead?
"Müller" is expected - "M[]ller" is seen

What version of the product are you using? On what operating system?
3.0

Please provide any additional information below.
I checked your sourcecode and it seems you use contact.title.$t instead of 
contact.getTitle().getText() - but I'm not sure if this has something to do 
with this issue

Original issue reported on code.google.com by arBm...@gmail.com on 28 Jul 2009 at 6:54

GoogleCodeExporter commented 9 years ago
I used the 2.0 Javascript Version. (There is not 3.0 version)

Original comment by arBm...@gmail.com on 28 Jul 2009 at 6:56

GoogleCodeExporter commented 9 years ago
Hi,thanks for Your Feedback.

Regarding Your getTitle question:
The ContactsService has only implemented the v2 API.
So I use GoogleService instead of the ContactsService.
It is the workaround to get the special fields from Contacts API v3.
So I have to call GoogleService.getFeed() with 
the query parameter 'v=3.0' to get the birthday field.
Because of that I can't use the ContactsService functions 
contact.getTitle().getText().

Stay tuned, I will investigate the issue.

Original comment by GlaserFr...@gmail.com on 29 Jul 2009 at 7:38

GoogleCodeExporter commented 9 years ago
Version 2.01 now online:
Issue ID 1 umlauts handling is fixed

The Problem was not the reading from contacts.
The umlauts has to be encoded before sending it to calendar.

For more infos, see here:
http://phpjs.org/functions/htmlentities:425

Original comment by GlaserFr...@gmail.com on 30 Jul 2009 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by GlaserFr...@gmail.com on 30 Jul 2009 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by GlaserFr...@gmail.com on 30 Jul 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by GlaserFr...@gmail.com on 30 Jul 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by GlaserFr...@gmail.com on 12 Aug 2009 at 7:54