Keyfactor / ejbca-easy-rest-client

Erce – The Easy Rest Client for EJBCA
GNU Lesser General Public License v2.1
10 stars 2 forks source link

Unmappable character for encoding US-ASCII #3

Closed Realiserad closed 2 years ago

Realiserad commented 2 years ago

Fix the error "unmappable character (0xE2) for encoding US-ASCII" when building on ubuntu:latest

To reproduce:

> docker run -it ubuntu:latest /bin/bash
ubuntu> apt update
ubuntu> apt install maven git -y
ubuntu> git clone https://github.com/Keyfactor/ejbca-easy-rest-client.git
ubuntu> cd ejbca-easy-rest-client
ubuntu> mvn clean package

ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /ejbca-easy-rest-client/src/main/java/com/keyfactor/ejbca/client/enroll/EnrollGenKeysCommand.java:[68,12] error: unmappable character (0xE2) for encoding US-ASCII
[ERROR] /ejbca-easy-rest-client/src/main/java/com/keyfactor/ejbca/client/enroll/EnrollGenKeysCommand.java:[68,13] error: unmappable character (0x80) for encoding US-ASCII
[ERROR] /ejbca-easy-rest-client/src/main/java/com/keyfactor/ejbca/client/enroll/EnrollGenKeysCommand.java:[68,14] error: unmappable character (0x93) for encoding US-ASCII
[INFO] 3 errors
mike-agrenius-kushner commented 2 years ago

Ah, thanks for that one! Goddamn US-ASCII not supporting EM Dash.