Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3731 Переглядів

Im writing a report that should display the information as a simple list however the problem is that when the data has the special german characters ä, ö, ü, ß it does not display them properly

  • instead of t-field i have already tried t-esc 
  • I have also tried t-esc with a function that replaces every special character with their utf-8 escape code but that did not work either
  • i have looked at how odoo does it in their reports but they do not seem to be using anything special (also just t-field)
  • I have included the meta charset utf-8 tag
  • I have also marked the xml with encoding = UTF-8
  • I have also looked into the database using pgAdmin and found that the special characters seem to be stored correctly
  • To test, I also changed the report type to HTML and it works there so it may be a problem with wkhtmltopdf?

This is the current report code:

(I have left out css styling since it shouldnt be necessary (The only thing I change is font and spacing)

Thank you for your help.


(the forum cant handle the code properly so I pasted it on pastebin)
https://pastebin.com/D7qmHNJQ

Аватар
Відмінити
Найкраща відповідь

I found this solution:

add after web.html_container


meta charset="UTF-8"  


Thanks

ps. Pasting HTML here seems to be impossible. 

Аватар
Відмінити
Найкраща відповідь

Hi,

Can you use any report layouts like web.external_layout and see if it works for you.

Thanks

Аватар
Відмінити
Автор

Thank you for your response. I used it and it produced the same results unfortunately

Related Posts Відповіді Переглядів Дія
2
вер. 24
3418
0
вер. 17
5197
1
черв. 25
1705
3
лип. 25
3330
1
трав. 25
1470