Skip to main content
Solved

XLSXW writer: The encoded string is not a valid UTF-8 string

  • December 3, 2025
  • 1 reply
  • 54 views

p.jeremie
Contributor
Forum|alt.badge.img+6

Hi, 

I updated a workspace from FME 2020 to FME 2025, and I have an error in 2025 that I haven’t in 2020, with the same input data.

On the Excel writer, I get an error on a specific string regarding the validation as UTF-8.

ERROR : XLSXW writer: The encoded string is not a valid UTF-8 string: 'S\x00u\x00r\x00 \x00c\x00h\x00a…….'

Any idea why and how I can check the strings before the writer so it doesn’t stop the workspace with an error ?

Best answer by p.jeremie

I answer myself 😅 : with an AttributeEncoder (or the string function ConvertEncoding()) I had been able to get a valid string and I have no more error on the writer.

1 reply

p.jeremie
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Best Answer
  • December 3, 2025

I answer myself 😅 : with an AttributeEncoder (or the string function ConvertEncoding()) I had been able to get a valid string and I have no more error on the writer.