Skip to main content
Solved

AttributeValueMapper imported excel - encoding is wrong


clemensb
Contributor
Forum|alt.badge.img+5

Hi,

i am using an AttributeValueMapper where i import an excel file. In the preview the encoding is correct, but when i complete the import steps, the encoding gets destroyed. I dont find any option to change this. Are there options to correct this or is this not possible or is this a bug?

i am using FME(R) 2019.1.0.0 (20190710 - Build 19608 - WIN64)

Regards

Clemens

Best answer by daveatsafe

Hi @clemensb,

For a workaround, please save your Excel table to CSV, then import the CSV file into the AttributeValueMapper. The CSV reader has an Advanced parameter that lets you control the encoding of the source file, so you can force the correct encoding.

View original
Did this help you find an answer to your question?

11 replies

Forum|alt.badge.img+2

@clemensb I couldn't reproduce your issue in FME 2020 or 2019. See the attached spreadsheet, sheet2 for my example. variousencodings.xlsx

What version of FME are you using? What system locale is your machine set too.


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 19, 2020
markatsafe wrote:

@clemensb I couldn't reproduce your issue in FME 2020 or 2019. See the attached spreadsheet, sheet2 for my example. variousencodings.xlsx

What version of FME are you using? What system locale is your machine set too.

i am using FME(R) 2019.1.0.0 (20190710 - Build 19608 - WIN64) with Windows 10

the system locale is "Deutsch (Deutschland"

i got the same problem with your .xlsx, preview is fine, imported is wrong


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 2, 2020
markatsafe wrote:

@clemensb I couldn't reproduce your issue in FME 2020 or 2019. See the attached spreadsheet, sheet2 for my example. variousencodings.xlsx

What version of FME are you using? What system locale is your machine set too.

Seems like a bug for me. It is pretty bad, because now i have to check and change it by hand after the import :(

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

I was also unable to reproduce the issue - aslo German encoding on the machine. Build 19608. Could it be you are using an old version of the transformer? Have you tried adding a new one to the worksapce? or tired going through the upgrade transformer wizard?


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 3, 2020
virtualcitymatt wrote:

I was also unable to reproduce the issue - aslo German encoding on the machine. Build 19608. Could it be you are using an old version of the transformer? Have you tried adding a new one to the worksapce? or tired going through the upgrade transformer wizard?

No they are uptodate and i added new one


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
clemensb wrote:

No they are uptodate and i added new one

Super strange. Reinstall? Have you tried that. Or just a new install into a completely new folder?

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • Best Answer
  • April 3, 2020

Hi @clemensb,

For a workaround, please save your Excel table to CSV, then import the CSV file into the AttributeValueMapper. The CSV reader has an Advanced parameter that lets you control the encoding of the source file, so you can force the correct encoding.


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 6, 2020
daveatsafe wrote:

Hi @clemensb,

For a workaround, please save your Excel table to CSV, then import the CSV file into the AttributeValueMapper. The CSV reader has an Advanced parameter that lets you control the encoding of the source file, so you can force the correct encoding.

Hi @daveatsafe,

i tried now the csv-reader. Here is the opposite effect :D i tried various encodings, preview was fine, import was bad. Then i used utf-8, here is a error in the preview, but the import is fine! I will use the csv-workaround. Hopefully with the next version the excel will also work. Thank you!


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 6, 2020
virtualcitymatt wrote:
Super strange. Reinstall? Have you tried that. Or just a new install into a completely new folder?

No but I tried it on also on other PCs in your office. There is the same problem. It might be some setting from our IT which leads to this strange behavior. So i dont think reinstalling will change this.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
clemensb wrote:

No but I tried it on also on other PCs in your office. There is the same problem. It might be some setting from our IT which leads to this strange behavior. So i dont think reinstalling will change this.

Does the Excel reader have the same problem when reading? That would be an interesting test.


clemensb
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 6, 2020
virtualcitymatt wrote:

Does the Excel reader have the same problem when reading? That would be an interesting test.

I just tested it, the Excel reader works normal. This is really strange


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