Skip to content

(some) whitespace characters as well as curser shown as  in production build (only) #5288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SebastianKrieger opened this issue Feb 28, 2018 · 4 comments

Comments

@SebastianKrieger
Copy link

what should happen: normal whitespace shown
what happened: Â character shown instead of whitespace

a instead of whitespace

what i tried:

  • adding <meta charset="UTF-8"> to html
  • using ascii_only option in uglify-js

asci only

my babel rc looks like this:
babelrc

@adrianheine
Copy link
Contributor

I doubt that's something we can help with, or at least it doesn't seem to be CodeMirror's fault.

@SebastianKrieger
Copy link
Author

yes, maybe you are right, at least with the second statement. Not many others seem to experience this behaviour like me..
space code

Maybe as help for people who may run into this and read this page, is there a work-around like configuring the visual whitespace element to be sth. else ? Or so... if not its ok...

@marijnh
Copy link
Member

marijnh commented Mar 2, 2018

There's no way to reconfigure the whitespace character, and you'll run into other problems when the encoding of the library is mangled, so I'd look through my build process carefully to see where the problem is being introduced, and fix it.

@marijnh marijnh closed this as completed Mar 2, 2018
@SebastianKrieger
Copy link
Author

wow finally! Found the source! After hours of checking everything else the reason was a missing utf-8 content type in s3 metadata which just showed up in production version. Thank you for the replies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants