tuan-tu-tran / ades

Plate-forme web de gestion de dossiers d'élèves pour éducateurs scolaires
www.educ-action.be
GNU General Public License v3.0
0 stars 0 forks source link

Inconsistent character encoding for school name/title #117

Closed tuan-tu-tran closed 9 years ago

tuan-tu-tran commented 9 years ago

When a new version is pushed, it looks like the name of the school suffers from encoding error.

By logging in and re-editing the school name, it fixes it until the next version push.

To be confirmed see bug identification below

Test

tuan-tu-tran commented 9 years ago

Actually, it's because when we install, the school config file is written in utf8 whereas:

Furthermore, the page to edit school data is in latin1 so it will rewrite the file in latin1

Solution

since it's easier to change new pages, we will keep writing the file in latin1 but before display, we'll transcode it to utf8 for display on new pages Also, the install page must be adapted to write the file in latin1