Вопрос

I'm using PHP-PKPass to generate a pass for Passbook on iOS devices. I need to include a copyright symbol (©) on the back in one of the "backFields", but am not having any success.

I've tried copying/pasting an actual copyright symbol (©) into the text, which shows as a missing character (? in a box).

I've also tried using HTML special entity codes, both of which simply show as straight text.

©
©

I'm thinking that the HTML entities aren't working due to the fact that the pass isn't generated to handle HTML other than scrubbing for hyperlinks and phone numbers via the data detectors (as specified in the Passbook Programming Guide). But I'm still not sure if special characters are even doable as part of the back fields.

Has anyone encountered this issue and found a solution? Thanks in advance for the help.

Это было полезно?

Решение

Since this is JSON, you can use \u00a9 (0xA9 = 16910) to specify ©.

HTML entities are not relevant here.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top