O recurso está a ser carregado... Carregamento...

HttpQuery em chinês

Autora:18599999999, Criado: 2022-02-16 13:27:24, Atualizado: 2022-02-16 13:48:21

Por favor, senhoras e senhores, os dados que o servidor devolveu são de GB18030 e os resultados da solicitação de impressão são os seguintes.

- Não. Code de estado: 200, Título: { Cache-Control: [ sem cache ], Conexão: [ Mantém-te vivo ], Tipos de conteúdo: [ application/javascript; charset=GB18030 ] }, Cookies: [], Body: var hq_str_gb_$dji= ,34988.8398,1.22,2022-02-16 06:01:05,422.6700,34686.1914,35047.7891,34686.1914,36952.6484,30547.5293,305666649,370199515,0,00,,0.00,0.00,00.00,0.00,00.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0. - Não.


Mais.

Inventor quantificado - sonho pequenoQuando a função HttpQuery é chamada para enviar uma solicitação HTTP, especifique o conjunto de caracteres no cabeçalho da solicitação e tente. "application/javascript; charset=xxx" é definido como utf-8, etc.

Inventor quantificado - sonho pequenoNão é cortês, obrigado pela sua pergunta.

18599999999Sim, sim, sim. (Aplausos)

Inventor quantificado - sonho pequenoO teste foi feito e, em resposta ao seu questionamento, nós atualizamos o administrador. Não. função main (() { var ret = HttpQuery "https://hq.sinajs.cn/rn=1644985273291&list=gb_$dji,gb_ixic,gb_$inx,hf_GC,hf_CL,DINIW,s_sh000001,rt_hkHSI,b_NKY", {method: "GET", charset: GB18030"}, Não, não. "Referente: https://stock.finance.sina.com.cn/usstock/quotes/.IXIC.html", Não é verdade. Não. Log (ret.Body) Não. Não. Se você usar o administrador mais recente, então você deve usar este código para fazer o debugging e o caracteres chineses serão exibidos normalmente.

18599999999O problema pode ser resolvido com código? ou pode ser resolvido em pouco tempo?

18599999999O código pode ser consultado em https://www.fmz.com/strategy/345557

Inventor quantificado - sonho pequenoO que você precisa fazer é ver como seu código é escrito, httpQuery e contexto.

18599999999Eu tentei adicionar "Content-Type" nos cabeçalhos: "application/javascript; charset=utf-8", ou não (não sei se isso é certo ou não). Estima-se que o servidor só retorne esse conjunto de caracteres. E os dados financeiros rastreados e a alteração do cabeçalho do pedido também podem ser identificados.