Loggly 支持非英语字符
我正在尝试将我的网络应用程序收集的数据记录到 Loggly。但是,在提交包含俄语或希伯来语字符串的 JSON(甚至纯文本)后,我在输出中收到问号。
包含俄语单词的示例字符串:
curl -H "content-type:text/plain" -d "Привет, мир!" https://logs.loggly.com/inputs/YOUR-INPUT-GOES-HERE
Loggly 中是否支持非英语字符?如果是,我该如何使用它?我很确定我正在以 UTF-8 格式发送数据。
I'm trying to log data, collected by my web application to Loggly. However after submitting JSON (or even plain text) containing strings in russian or hebrew I receive question marks at output.
Example string that contains word in russian:
curl -H "content-type:text/plain" -d "Привет, мир!" https://logs.loggly.com/inputs/YOUR-INPUT-GOES-HERE
Is there support for non-english characters in Loggly? If yes, how do I utilize it? I'm pretty sure I'm sending data as UTF-8.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
显然令人惊讶的是,似乎只支持 ASCII (0-127) 字符:
来源:http://community.loggly.com/customer /portal/questions/6549048-cyrrilic-encoding?b_id=50
Apparently and surprisingly, it seems that only ASCII (0-127) chars are supported:
Source: http://community.loggly.com/customer/portal/questions/6549048-cyrrilic-encoding?b_id=50
我自己还没有使用过 loggly,所以这只是一个疯狂的猜测:需要指定内容类型标头中的字符集:
否则它可能默认为 ascii。
Have not used loggly myself yet, so this is just a wild guess: The charset in the content-type header needs to be specified:
Otherwise it probably defaults to ascii.
查看这个问题的解决方案。
check out this solution to the problem.