Skip to content

How to Convert Strings of Any Encoding to UTF-8? #23255

Answered by pront
ruoshuixuelabi asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasqueirozb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
domain: vrl Anything related to the Vector Remap Language transform: remap Anything `remap` transform related
2 participants
Converted from issue

This discussion was converted from issue #23254 on June 24, 2025 12:59.