我正在用TVHeadend作为电视到网络的服务器.它有一个JSON,用于诸如频道列表和电子程序指南(EPG)。我的问题是,EPG数据有时包含重音字符,这会导致iOS客户端窒息。
为了进行调试,我在macOS上使用Postman来检查从服务器获得的数据。下面是一个EPG条目的示例,其中一个条目具有“坏”数据,如Postman中所示:
{
"eventId": 14277,
"episodeId": 14278,
"channelName": "49.3 CometTV",
"channelUuid": "02fe96403d58d53d71fde60649bf2b9a",
"channelNumber": "49.3",
"start": 1480266000,
"stop": 1480273200,
"title": "The Brain That Wouldn't Die",
"description": "Dr. Bill Cortner and his fianc�e, Jan Compton , are driving to his lab when they get into a horrible car accident. Compton is decapitated. But Cortner is not fazed by this seemingly insurmountable hurdle. His expertise is in transplants, and he is excited to perform the first head transplant. Keeping Compton's head alive in his lab, Cortner plans the groundbreaking yet unorthodox surgery. First, however, he needs a body."
},正如你所看到的,邮递员在外卖中“翻译”了重音字。这很好,所以有人知道他们用来做这件事的逻辑吗?
发布于 2016-12-01 19:52:19
这个问题很可能发生在TVHeadend配置中,并且与通道是否符合所需的字符集有关。我不认为你能在接收端修好它。
您可能需要查看这个线程以获得更多信息:
https://stackoverflow.com/questions/40845411
复制相似问题