Overview
This node performs character encoding conversion on binary data. It reads binary input data encoded in 'windows-1251', decodes it to a string, then re-encodes it to 'utf-8' and outputs the result as binary data. This is useful for workflows that need to convert text files or data streams from legacy encodings to UTF-8 for compatibility with modern systems.
Use Case Examples
- Converting legacy text files encoded in Windows-1251 to UTF-8 for further processing or storage.
- Processing binary data streams from external sources that use Windows-1251 encoding and normalizing them to UTF-8.
Output
Binary
Outputs the converted binary data encoded in UTF-8 under the 'data' binary property.
Dependencies
- Uses the 'iconv-lite' library for encoding conversion.
Troubleshooting
- If the input binary data is not encoded in Windows-1251, the output may be incorrect or garbled. Ensure the input encoding matches the expected 'windows-1251'.
- Errors may occur if the input binary data is missing or corrupted; verify that the input binary property named 'data' exists and contains valid data.
Links
- iconv-lite GitHub Repository - Library used for character encoding conversion in this node.