How to Convert Strings of Any Encoding to UTF-8? #23255
Answered
by
pront
ruoshuixuelabi
asked this question in
Q&A
-
This is my configuration. I need to convert the string encoding with .message = decode_charset!(.message, "GBK"). However, the encoding of my string isn't necessarily GBK. Is there any way to convert it to UTF - 8 regardless of its original encoding? 1. Syslog UDP Source
2. Syslog字段解析 + 字段保留
5. Kafka输出
|
Beta Was this translation helpful? Give feedback.
Answered by
pront
Jun 24, 2025
Replies: 1 comment
-
VRL provides https://vector.dev/docs/reference/vrl/functions/#decode_charset but you have to know the original charset. If there are many possible charsets, you can try |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thomasqueirozb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VRL provides https://vector.dev/docs/reference/vrl/functions/#decode_charset but you have to know the original charset. If there are many possible charsets, you can try
decode_charset
on each one until it passes.