AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
205 stars 51 forks source link

Using non-utf-8 encoding in the default.ini from OntoWiki (utf-16 for example) leads to a warning #384

Open shinobu opened 8 years ago

shinobu commented 8 years ago

If you choose utf-16 as encode in the default.ini OntoWiki throws a warning:

Warning: htmlspecialchars(): charsetutf-16' not supported`

setup: OntoWiki Develop 456a819 PHP 5.5.9-1ubuntu4.17 Virtuoso Version 07.20.3217-pthreads for Linux as of Jul 4 2016 Erfurt 8340230

white-gecko commented 8 years ago

do other encodings work. other than utf-8?

shinobu commented 8 years ago

no error: utf-8, IBM866, KOI8-R, KOI8-U

error: ISO-8859-2, ISO-8859-3 (i will skip the others up to iso 1, i guess it will be the same), macintosh, windows-874(i guess the other windows encodings too), ASCII, GBK, utf-16

we should check how the encoding is determined in OntoWiki and add a list with possible encodings (and maybe expand it later on)

shinobu commented 8 years ago

After a little search Zend and OntoWiki seem to support all of those html entities listed on this website:

http://php.net/htmlentities

(the Zend Filter for Version 2.0 linked there, though we use 1.12 it still seems to work https://framework.zend.com/manual/2.0/en/modules/zend.filter.set.html)

though the line on the left-top (OntoWiki --- Model info...) changed to many different symbols depending on the encoding

screenshot from 2016-08-19 13 22 59