根据ntt图文识别改的
(wb) =>
let
token_url = "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=*************&client_secret=*************",
token_headers = [#"Content-Type"="application/json; charset=UTF-8"],
token = Json.Document(Web.Contents(token_url))[access_token],
img_url = "https://aip.baidubce.com/rpc/2.0/nlp/v1/lexer?access_token="&token ,
img_headers = [#"Content-Type"="application/json"],
img_content = "text="&Uri.EscapeDataString(Binary.ToText(Text.ToBinary(wb),BinaryEncoding.Hex)),
c=Json.Document(Web.Contents(img_url,[Headers=img_headers,Content=Text.ToBinary(img_content)]))
in
c
GBK格式 不会转 转过来报错无效参数
求大佬解救