Skip to main content
Question

StringReplacer | Per mille

  • September 24, 2019
  • 2 replies
  • 13 views

I'm trying to replace the per mille sign ‰ to the other symbol with StringReplacer, but this function seems to not work for this particular character. As import file I use .txt-file.

Is it a known issue? Is there a workround for this problem?

I work with FME 2018.1

 

 

2 replies

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • September 24, 2019

I can replace that character directly in the string replacer in 2018.1. You could try replace regex instead with the following value

\x{2030}

It may be something to do with the encoding in your text file. 


  • Author
  • September 25, 2019

Thank you for the hint!

Indeed, the problem was the encoding: I set the Tranformer AttributeEncoder (change to utf8) before the StringReplacer and it works perfectly!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings