Sunday 15 June 2014

utf 8 - Uploading Amazon Inventory UTF 8 Encoding -


I am trying to upload my English listings to various European Amazon sites. The problem I am experiencing is that an "inventory file" on Amazon is not being displayed correctly when uploaded in some different languages. The inventory file is a tab delimited text file.

Current Setup:

  $ type = 'text / tab-separated-values; Charset = utf-8 '; Header (. 'Content type:' $ type); Header ('content-dispute: attachment; file name =' list - '. $ _gET [' cc '].' Txt '); Header ('Content-Length:'. Strlen ($ data)); Title ('Content - Encoding: UTF-8');   

When the text file is output and it is saved, it actually looks like when it should be opened in windows (all the characters are correct) but for some reasons Amazon Not seen as UTF 8 and it has been re-encoded with all the characters found here:

I have tried to add BOM at the top of the file but This is just giving an error in the results Amazon. Has anyone else experienced this?

As told by Fdoo in his comment, Amazon should format ISO-8859-1 Not expected, UTF-8 is not. This is the reason why you should use the method of PHP when writing to your file.

No comments:

Post a Comment