Text Encoding in PSLink

Originator:timschroedernet
Number:rdar://10629321 Date Originated:28-12-2011
Status:Open Resolved:no
Product:Mac OS X Product Version:10.7.2
Classification:Other Bug Reproducible:always
 
Summary: When the Pubsub framework is used to retrieve a list of hyperlinks to rss feeds, e.g. by creating a PSFeed object for the landing page of a website, the title property of PSLink objects created by the framework often (i.e. for websites which don't use plain ASCII text) has a wrong encoding which cannot be corrected by any conversion. 

Steps to Reproduce: Create a PSFeed object with a hyperlink to a web page that uses non-standard characters (e.g. non-latin characters). If the web page contains <alternate> tags, PSFeed will create PSLink objects (available in the links array of the PSFeed object) but the title property will have a strange and unreadable encoding, depending on the enconding of the webpage. As an example, throw the URL http://www.yandex.ru at a PSFeed object and look at the title property of the [feed links] array after loading. Using [feed xmlRepresentation] gives the same wrong encoding.

Expected Results: Have the PSLink title property in the correct encoding.

Actual Results: PSLink title property has wrong encoding.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!