Search code examples
ioscordovaencoding

Cordova iOS source files not in UTF-8 after compilation


I develop a Cordova aplication for iOS. I use UTF8 for all of my source codes files. I use VS Code for writing and XCode for compilation. Both of them show my source files correctly:

VS Code

enter image description here

XCode ( I event set manually encoding of the file )

enter image description here

Once the application is compiled and loaded to my phone, the files are interpreted in some different encoding ( this picture comes from Safari debuger )

enter image description here

Any idea how to fix it?


Solution

  • So, finally I found the solution. It is necessary to add

    <meta charset="UTF-8">
    

    to index.html.