1. The encoding format is not uniform
Idol API is Http-based Get call, input n multi-parameter, can spit out XML and Json.
Since idol does not specify the encoding format (ContentType) in the output document, response can be obtained with HttpWebRequest Httpresponse.charaterset will return the "iso-8859-1" encoding format, which is The default encoding format for Tomcat. If you use this encoding format will parse the Chinese into garbled. This is also added Responseformat=json, the browser will output garbled reasons.
The idol needs to be read using UTF8.
2. Output format is not uniform
Idol supports two output formats: XML format, JSON format.
XML format that will flatten the data. Below the document section is the data, there are no children, if there is work experience in the CV, it is a list, then Idol will enter something similar to the following.
<id>1</id>
<Company> Beijing 1 Company </Company>
<StartAt>2000-1-1</StartAt>
<EndAt>2003-12-30</EndAt>
<id>2</id>
<Company> Beijing 2 Company </Company>
<StartAt>2004-1-1</StartAt>
<EndAt>2006-12-30</EndAt>
If the JSON format is output, it is more scrambled.
It will change the value type to: {$: "value"} object. As follows:
[{id:{$:1},company:{$: "Beijing 1 Company"},startat:{$: "2000-1-1"},endat:{$: "2003-12-30"},
{id:{$:2},company:{$: "Beijing 2 Company"},startat:{$: "2004-1-1"},endat:{$: "2006-12-30"}]
The Pit of Idol