SemanticMediaWiki / SemanticMediaWiki

🔗 Semantic MediaWiki turns MediaWiki into a knowledge management platform with query and export capabilities
https://www.semantic-mediawiki.org
Other
516 stars 228 forks source link

\u003C encoding in message json files?? #251

Closed mwjames closed 10 years ago

mwjames commented 10 years ago

While I thought that #248 was going to be 1:1 migration, I now found out that all over the message json files \u003C are scattered [0].

I can't say that this is really user friendly nor that I'm in favour of reading utf-8 code.

[0] https://gerrit.wikimedia.org/r/#/c/121800/1/i18n/ja.json

mwjames commented 10 years ago

@JeroenDeDauw @kghbln Any idea of what is going wrong here?

kghbln commented 10 years ago

According to this "thread" one would use the UTF-8 in case the message is used by JavaScript. However, in this case I would think that this behaviour should be observed in every language file for the respective messages. This is not the case so I have no idea if there is something in the water or if there is another reason to do this.

JeroenDeDauw commented 10 years ago

Ping @siebrand

siebrand commented 10 years ago

This is apparently how MediaWiki and/or PHP deal with JSON. Possibly @Nikerabbit may be able to provide more background.

Nikerabbit commented 10 years ago

https://gerrit.wikimedia.org/r/121922 changes the difference in behavior between the maintenance script and twn exports to match.

mwjames commented 10 years ago

It seems that UTF-8 encoding has been replaced with "human" readable encoding therefore closing this one.