Search code examples
encodingtridion

SDL Tridion - Published files are not UTF-8 Encoded


I've set the publication target within SDL Tridion to push files (aspx) as UTF-8.

The pages are published but i'm still seeing some weird encoding issues when rendered in a browser.

I can edit the files on the server using notepad and save them as UTF-8, which fixes the issue. So I'm a little stuck as to why this is happening, and annoyingly i've seen this before but cannot remember how it was resolved.

I have tried some other options in the publishing target for example 'System Default' but i'm still seeing the same issue.

Thanks

John


Solution

  • In IIS / .NET I never had problems after setting the Publication Target to UTF-8 and setting this in web.config:

    <globalization fileEncoding="UTF-8" requestEncoding="UTF-8" 
    responseEncoding="UTF-8"/>
    

    If you're using a Windows-Service based deployer you may want to set the JVM encoding to UTF-8, as explained here.