angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

× in HTML displayed as × in prod build instead of 'X'

Open harikrishnan-u01 opened this issue 9 years ago • 6 comments

× in HTML displayed as × in prod build instead of 'x'. This is working fine in Dev build.

PFB screenshot:

image

Can you help in resolving this?

Am using "@angular/cli": "1.3.0-beta.0",

Thanks, Hari

harikrishnan-u01 avatar Jul 19 '17 17:07 harikrishnan-u01

Even   in the HTML code changes to   in --prod build.

I have the following charset in my index.html:

<meta charset="utf-8">

harikrishnan-u01 avatar Jul 19 '17 19:07 harikrishnan-u01

Any help?

harikrishnan-u01 avatar Jul 24 '17 20:07 harikrishnan-u01

Hi,

The issue was with UTF-8 encoding. Added the following configuration in spring boot to resolve the issue:

spring.messages.encoding=UTF-8 server.tomcat.uri-encoding=UTF-8 spring.http.encoding.charset=UTF-8 spring.http.encoding.enabled=true spring.http.encoding.force=true

Reference: http://netkiller.github.io/java/spring/boot/application.properties.html#charset

Thanks, Hari

harikrishnan-u01 avatar Jul 26 '17 13:07 harikrishnan-u01

Closing then.

filipesilva avatar Jul 28 '17 14:07 filipesilva

@harikrishnan-u01 Thanks for saving my time 👍

nomykk avatar Mar 05 '18 11:03 nomykk

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.