I am uploading some .js files to an s3 bucket through Travis, one of the files has the following regex:
/(^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+)/
The Travis .yml file is super simple:
- provider: s3
access_key_id: THEKEY
secret_access_key:
secure: THESECUREDKEY
bucket: my-bucket
local-dir: build
skip_cleanup: true
on:
branch: master
acl: public_read
Nothing strange there, but after doing the upload, I am getting the following result inside the .js containing that regex (instead of the regex that I supplied):
/(^[a-zA-Zà áâäãåąÄćęèéêëėįìÃîïłńòóôöõøùúûüųūÿýżźñçÄšžÀÃÂÄÃÅĄĆČĖĘÈÉÊËÌÃÃŽÃÄ®ÅŃÒÓÔÖÕØÙÚÛÜŲŪŸÃŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+)$/
As you can see, I missed most of the characters.
Is there a way to set the encoding to Travis when doing an upload to an s3 bucket? Am I missing something else?