Encoding issue
Hi,
I currently use Gitlab CI Runner for Windows but I would like to switch to your solution (better). However, there is an issue with character encoding, and more precisely accentuated characters.
Trace log when there is an accentuated character in build trace:
Mysql2::Error: Incorrect string value: '\xEF\xBF\xBDcut...' for column 'trace' at row 1: UPDATE
buildsSETtrace= 'gitlab-ci-multi-runner 0.4.0-2-g61c25b59 (61c25b59)\nUsing Shell executor...\n\r\nRunning on EXAMPLE-PC...\r\nFetching changes...\r\nRemoving test.log\nChecking out c4f63c3b as test...\r\ngit submodule update --init\r\nls -la\r\ntotal 19\ndrwxr-xr-x 7 Foo Administrateurs 4096 Jun 22 13:13 .\ndrwxr-xr-x 3 Foo Administrateurs 0 Jun 22 12:56 ..\ndrwxr-xr-x 7 Foo Administrateurs 4096 Jun 22 13:13 .git\n-rw-r--r-- 1 Foo Administrateurs 1851 Jun 22 12:56 .gitignore\ndrwxr-xr-x 4 Foo Administrateurs 4096 Jun 22 12:56 Project\ndrwxr-xr-x 3 Foo Administrateurs 0 Jun 22 12:56 Project.xcodeproj\ndrwxr-xr-x 2 Foo Administrateurs 0 Jun 22 12:56 Project Tests\ndrwxr-xr-x 9 Foo Administrateurs 4096 Jun 22 12:56 TotoFramework\n-rw-r--r-- 1 Foo Administrateurs 394 Jun 22 12:56 TotoFrameworkBridge.h\necho "YESYESYES"\r\n"YESYESYES"\r\nsleep 3\r\nIF EXIST myscript.bat del /F myscript.bat\r\n# wget --no-check-certificate -O myscript.bat https://example.com/index.php/s/abcdefghijk/download\r\n'#' n'est pas reconnu en tant que commande interne\r\nou externe, un programme ex�cutable ou un fichier de commandes.\r\n\nBuild failed with exit status 9009',updated_at= '2015-06-22 13:16:45' WHEREbuilds.id= 11424
I didn't get this issue with https://github.com/virtualmarc/gitlab-ci-runner-win
I'm pretty sure it's a JSON encoding issue. Collation of trace field is latin1_swedish_ci. Why GitLab CI doesn't use UTF-8 ? :(
Thanks