.xml files won't work in greek language
Yingodv opened this issue · 8 comments
Long time an Issue has not occured.... So we're using Waet for music a emotion recognition project regarding Greek Tradition music from alla over greece.
We've set up our Pre Test Survey with some questions for statistic reasons , in greek regarding that these questionnaires are addressed to Greeks (For now).
So we uploaded our whole dorectory as the manual implies in a server that supports python and php as well.
Although in stand alone mode the .xml runs smoothly and returns the resuts perfectly when we try to run it in the web server the .xmls are not loading the greek language properly even when we tried to use force encoding with Utf-8 in the xml file.
We tried this in two different servers (Not free ones obviously).
If there is someone who can give any tip on this we would appreciated it a lot.
Last but not least the team has done a great job with this tool.
Hmm. Now that is a new one. I don't have a direct solution for you as I cannot see why it would not work, although that is seriously unhelpful!
Do you have the xml or at least a capture of the errors in the console so we can see what has happened
FATAL ERROR
The XML validator returned the following errors when decoding your XML file
document.xml:1: parser error : EntityRef: expecting ';'
ilence="0" postSilence="0" playOne="false" minNumberPlays="0">ᅢホ"ᅢマ&ᅢマ
^
document.xml:1: parser error : PCDATA invalid Char value 30
nce="0" playOne="false" minNumberPlays="0">ᅢホ"ᅢマ&ᅢマ!ᅢホᅡ매マᅡチᅢホᅡ째マᅡメᅢマ
^
document.xml:1: parser error : xmlParseEntityRef: no name
mberPlays="0">ᅢホ"ᅢマ&ᅢマ!ᅢホᅡ매マᅡチᅢホᅡ째マᅡメᅢマ�ᅢホᅡᅢマᅡヘᅢホᅡ태ホᅡᄉ ᅢマᅡᆲᅢホᅡᅢマ&
^
document.xml:1: parser error : PCDATA invalid Char value 30
ホᅡ째マᅡメᅢマ�ᅢホᅡᅢマᅡヘᅢホᅡ태ホᅡᄉ ᅢマᅡᆲᅢホᅡᅢマ& ᅢホᅡᅢホᅡ캐ホᅡᅢホᅡ채ホᅡ캐ホᅡ애マᅡチᅢマ}ᅢマᅡメᅢホᅡ매マ
^
document.xml:1: parser error : PCDATA invalid Char value 30
マ�ᅢホᅡᅢマᅡヘᅢホᅡ태ホᅡᄉ ᅢマᅡᆲᅢホᅡᅢマ& ᅢホᅡᅢホᅡ캐ホᅡᅢホᅡ채ホᅡ캐ホᅡ애マᅡチᅢマ}ᅢマᅡメᅢホᅡ매マ�ᅢホᅡᄉ ᅢマ
^
document.xml:1: parser error : PCDATA invalid Char value 30
ᅢマᅡᆲᅢホᅡᅢマ& ᅢホᅡᅢホᅡ캐ホᅡᅢホᅡ채ホᅡ캐ホᅡ애マᅡチᅢマ}ᅢマᅡメᅢホᅡ매マ�ᅢホᅡᄉ ᅢマ�ᅢホᅡ ᅢホᅡ새マᅡチᅢマ0ᅢマ
^
document.xml:1: parser error : PCDATA invalid Char value 30
ᅢホᅡ캐ホᅡᅢホᅡ채ホᅡ캐ホᅡ애マᅡチᅢマ}ᅢマᅡメᅢホᅡ매マ�ᅢホᅡᄉ ᅢマ�ᅢホᅡ ᅢホᅡ새マᅡチᅢマ0ᅢマ�ᅢホᅡ애ホᅡ태ホᅡ매マ
^
document.xml:1: parser error : PCDATA invalid Char value 30
ホᅡᄉ ᅢマ�ᅢホᅡ ᅢホᅡ새マᅡチᅢマ0ᅢマ�ᅢホᅡ애ホᅡ태ホᅡ매マ�ᅢホᅡᅢホᅡ캐マRᅢホᅡ빼ホᅡ째ホᅡ ᅢホᅡ빼ホᅡ째ホᅡᄆ ᅢマ
^
document.xml:1: parser error : PCDATA invalid Char value 30
チᅢマ0ᅢマ�ᅢホᅡ애ホᅡ태ホᅡ매マ�ᅢホᅡᅢホᅡ캐マRᅢホᅡ빼ホᅡ째ホᅡ ᅢホᅡ빼ホᅡ째ホᅡᄆ ᅢマ�ᅢホᅡᄋ ᅢホaᅢマᅡチᅢホᅡᆴᅢマ
^
document.xml:1: parser error : PCDATA invalid Char value 26
ᅢホᅡᆭᅢマᅡヘᅢホᅡ캐ホᅡᅢホ ᅢホᅡ패ホᅡᄡᅢマᅡチᅢホᅡ매マ
^
document.xml:1: parser error : PCDATA invalid Char value 28
ment>ᅢホ ᅢホᅡ패ホᅡᄡᅢマᅡチᅢホᅡ매マ�ᅢホ
These are some of the errors that occured during the xml validation. I've done some progress though.
Firstly i tried to run a xampp apache server locally and i downgraded my php version to 5.6.
After that the xml loads up but only when it comes to English. Unfortunately i'm still not able to undertsand why the xml is being exported as iso-8859 and not a utf-8 encoding.
I decided so that all of the survey shall be converted to english.
Furthermore i try to run it to my professor's web server which but i needed to change ta sample rate due to the server's old sound card...
Seems that the tool is not compatible with the latest version of php.
Lastly i'd like to customize the code so every time the listener completes one of my test it after the last pop up message he will be redirected in a main web page where he/she will be able to follow the other tests as well (19 test totally), without having him type the whole main page url again.
i will upload an example
As you can see its a descrete test and after the listening procedure by clicking Next the .xml is generated and is saved in the saves file.
Is there any way so that after you ckicking Next and the pop up message shows up the code could redirect me to my home page, where the rest of the links are located?
Thank you for your time.
The tool has not been tested using the newer versions of PHP as I have not had the time to deal with it. So yes you have to go down to an older version for now. Not ideal I know (and I do want to find time in the future to really build this back up to modern systems).
after the last pop up message he will be redirected in a main web page
You can do this already, by setting the returnURL
of the <setup>
node on completion to go to any URL you like. Note that projectReturn
is for where to save the test results, so this should not normally be set.
New challenge here. I have upoaded on simpe html home page 10 links of my Listening Tests.
So eventhough the tests are running smoothly, i have an error when my test is finished. I've set the returnURL
to my home page which is a simpe page like http://emotion.dyndns-server.com/home.html
So when the test is complete the test keeps forwarding at a url , be like
[https://emotion.dyndns-server.com/home.html>testKey=A6xtXivaDrZy3QGxofg0xWdiwhoBVlYv]
where after the "home.html" this whole prefix its just not expected.
I found out that in "core.js" there are some functions which adding some "sessionKeys".
Also in ASCHII table the ">" its just nearby of "?" which if i changed it on the new given link it pops me to my home page.
Any thoughts on this issue?