HomeDevCentral
Diffusion Tommy 85fed4a86b53

Force environment in UTF-8

Description

Force environment in UTF-8

Summary:
When the Jenkins server includes UTF-8 JSON characters
to API reply, for example « Dæghrefn », it broke JSON
parsing.

As Ruby is happy to use as default encoding the system
environment encoding, it's set to C.UTF-8 to fix this issue.

Reference: https://oncletom.io/2015/docker-encoding/

Test Plan:

  • Add a job with an UTF-8, non ASCII character to Jenkins
  • Start the new image

Reviewers: dereckson

Differential Revision: http://devcentral.nasqueron.org/D482

Details

Provenance
derecksonAuthored on Jul 10 2016, 22:08
derecksonPushed on Mar 4 2023, 18:39
Differential Revision
D482: Force environment in UTF-8
Parents
rTOMMY2dbac9acb16b: Fix launching parameters in docker run
Branches
Unknown
Tags
Unknown
Tasks
T910: Add support for UTF-8 characters in JSON API reply