How to matching char with gb2312 in scraper - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: How to matching char with gb2312 in scraper (/showthread.php?tid=52511) |
How to matching char with gb2312 in scraper - taxigps - 2009-06-09 I have written two scraper for chinese movie site. Mtime.com use utf-8, so I can matching any word from the web page. But imdb.cn use gb2312, only english character could be matching, some key word in chinese can't be matching. How to resolve this? - spiff - 2009-06-09 set the correct encoding on your scraper - taxigps - 2009-06-09 I'll modify imdb.cn scraper to use chinese key word to gether more information. Thanks! - spiff - 2009-06-09 to make sure you got my point; the scraper itself is an xml file. set its encoding using ?xml version="1.0" encoding="gb2312"?> - taxigps - 2009-06-10 Thanks for your help. I can use chinese key word in scraper now. It's works well. |