[Solved] Server Daemon needs UTF-8 Support

Information and error posts in regards to testing.
houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

[Solved] Server Daemon needs UTF-8 Support

Postby houkouonchi » Thu Oct 11, 2012 10:10 pm

Does not record things correctly in the db for songs with foreign characters. Needs utf-8 support.

User avatar
KandaRainbowsoul
Posts: 18
Joined: Fri Oct 12, 2012 4:32 am
Location: SVK
Contact:

Re: Server Daemon needs UTF-8 Support

Postby KandaRainbowsoul » Sat Oct 13, 2012 11:49 am

It doesn't record Vocaloid Collaboration songs at all :(
Although...It should've recorded FLOWER TAIL (VCP 8) if it was just this yet it didn't...
Image
Signature by GotxBrains from . Thank you!

User avatar
Angelo
Posts: 72
Joined: Sat Oct 06, 2012 4:31 am
Location: The Netherlands
Contact:

Re: Server Daemon needs UTF-8 Support

Postby Angelo » Tue Oct 16, 2012 3:23 pm

Can anyone please confirm that my commit a733fb05534a24dc5073ce886725a7c5ce92919f is working?

I don't have any songs with special UTF8 characters in them.
- Angelo
developer

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Tue Oct 16, 2012 6:26 pm

Doesn't appear to have fixed anything. I suspect that the non UTF8 support is causing the weird color issue as well:


http://box.houkouonchi.jp/screen00240.jpg

http://box.houkouonchi.jp/smo_utf8.png

Also an old bug with 3.95 has but its head into things again. Maybe the code just reverted somewhere? Gonna try re-adding the 3.95 support patch.

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Tue Oct 16, 2012 6:41 pm

Ok so fixed the 3.95 bug using the same code as before IE:

if (User_Protocol == 2)
gsuCtr += 2;

Also played the song again on the live DB and the percentage is right

http://stepmaniaonline.net/index.php?pa ... &mid=14101

The good news is I don't think this song was recording in the DB at all before because I know I have played it before.

Also I know UTF8 works on the site if its in the db as I have manually made my name in utf8 as a test and it displayed correctly on the site as 方向音痴

User avatar
foxfire667
Moderator
Posts: 557
Joined: Sat Sep 29, 2012 5:09 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby foxfire667 » Tue Oct 16, 2012 7:02 pm

Hasn't been fixed yet unfortunately.

I used a different pack, and was on SM 5 if it makes any difference. Figured two sources is better than one I guess:


houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Tue Oct 16, 2012 7:11 pm

I think this is more than just the connection to sqlite (although that might have been needed as well). I think the strings themselves need to be encoded as utf-8 for example:

http://stackoverflow.com/questions/8707 ... ng-to-utf8

User avatar
Angelo
Posts: 72
Joined: Sat Oct 06, 2012 4:31 am
Location: The Netherlands
Contact:

Re: Server Daemon needs UTF-8 Support

Postby Angelo » Tue Oct 16, 2012 11:14 pm

Can anyone give me a download to a song with UTF-8 characters in them?

Also, Hou, can you please make a pull request on Github for that if it's not in the Git repo yet?

Thanks!
- Angelo
developer

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Wed Oct 17, 2012 12:13 am


User avatar
Izzy
Moderator
Posts: 531
Joined: Thu Sep 27, 2012 3:03 pm
Location: Leawood, Kansas
Contact:

Re: Server Daemon needs UTF-8 Support

Postby Izzy » Tue Nov 13, 2012 5:09 am

If the database is now using MySQL does that mean it has UTF-8 support? Or at least it is possible now?

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Tue Nov 13, 2012 9:25 am


houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Thu Nov 15, 2012 1:38 am


houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby houkouonchi » Thu Nov 15, 2012 3:21 pm

Having a problem of the client disconnecting when its sent stuff with utf8 (not sure why). Until that gets worked out the not recording of some songs is still borked. However I am currently using a lame PHP workaround to reformat the data from the db and search strings so that it displays correctly on the site.

For example you can do a search like:

http://www.stepmaniaonline.net/index.ph ... =%E3%82%89

which is song=ら

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Server Daemon needs UTF-8 Support

Postby Cube » Thu Nov 15, 2012 5:24 pm

Instead of changing the server code, we just changed the site code to decode the strings and print them correctly.

Houkouonchi finished making the changes to the site, and I finished the javascript to so the rooms pages print out correctly now as well.

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby houkouonchi » Sat Nov 17, 2012 4:24 am

Server now has utf8 support (daemon) and database is in utf8 native (atleast for songs, not for users). This should also fix the songs not being recorded in the db.

User avatar
Thumbsy
Posts: 110
Joined: Fri Oct 12, 2012 8:00 am
Location: The Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby Thumbsy » Fri Nov 30, 2012 7:44 am

Playing again today... songs with foreign characters still fail to record, I checked my profile and none of the songs I played that have UTF8 characters in the artist and/or title field are displayed.
:(

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby houkouonchi » Mon Dec 10, 2012 1:15 pm


User avatar
Thumbsy
Posts: 110
Joined: Fri Oct 12, 2012 8:00 am
Location: The Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby Thumbsy » Mon Dec 10, 2012 1:25 pm


User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby Cube » Mon Dec 10, 2012 1:35 pm


houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Solved] Server Daemon needs UTF-8 Support

Postby houkouonchi » Mon Dec 10, 2012 3:51 pm



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Bug Reports ONLY”

Who is online

Users browsing this forum: No registered users and 11 guests