R rosippc64a Active Member Licensed User Longtime User Oct 5, 2020 #1 Hi All, I downloaded a html source of a webpage. In it there are words having utf8 characters, like: "Török Gábor". When I do this: B4X: tid.Parse(File.OpenInput(File.DirTemp, "index.html"), File.DirTemp, "1.xml") , in the 1.xml contains: B4X: Török Gábor It is eventually wrong, because the char "ö" must be: ö, so the good encoding is: B4X: Török Gábor How can I tell the jTidy, 1. not to transform my utf8 chars into &xxx; code or 2. use the good html entity? Thanks in advance Steven
Hi All, I downloaded a html source of a webpage. In it there are words having utf8 characters, like: "Török Gábor". When I do this: B4X: tid.Parse(File.OpenInput(File.DirTemp, "index.html"), File.DirTemp, "1.xml") , in the 1.xml contains: B4X: Török Gábor It is eventually wrong, because the char "ö" must be: ö, so the good encoding is: B4X: Török Gábor How can I tell the jTidy, 1. not to transform my utf8 chars into &xxx; code or 2. use the good html entity? Thanks in advance Steven
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2020 #2 Try this tool: [B4X] MiniHtmlParser - simple html parser implemented with B4X Upvote 0
R rosippc64a Active Member Licensed User Longtime User Oct 5, 2020 #3 Thank you @Erel , works well! Upvote 0