md-page icon indicating copy to clipboard operation
md-page copied to clipboard

French accent issue

Open jgwill opened this issue 3 years ago โ€ข 7 comments

Hi So far, very useful. I was wondering if the french accent issue you can see in the image can be fixed with ease :) ? regards

image

jgwill avatar May 15 '22 05:05 jgwill

PRs welcome

oscarmorrison avatar May 16 '22 08:05 oscarmorrison

Hello, I'm new to Open source. How can I contribute to this topic ?

benjaminwiseboy avatar May 21 '22 00:05 benjaminwiseboy

https://www.freecodecamp.org/news/how-to-contribute-to-open-source-projects-beginners-guide/

oscarmorrison avatar May 21 '22 00:05 oscarmorrison

What is the character that is failing? How to reproduce?

heyallan avatar Jun 29 '22 02:06 heyallan

What is the character that is failing? How to reproduce?

Based on context, probably a C-Cedilla ( รง ).

Having trouble reproducing the problem, seems to process them fine for me. Has this been patched?

image

adsuth avatar Sep 05 '22 17:09 adsuth

It's a matter of charset encoding. Their server doesn't specify any charset encoding within the Content-Type header. The browser start searching for the meta tag - that's simply not there, being generated afterwards - reverting to default content type. Possible solutions (I'm not an expert of md-page):

  • Setting the charset encoding directly from Apache (wise)
  • Putting the JS and the Markdown inside an html template that pre-defines the charset meta tag (it should work without duplicates, am I correct?)
  • Saving the file not as UTF-8 but UTF-8 with BOM

StefanoCappellini avatar Sep 13 '22 00:09 StefanoCappellini

I've just set up a small demo:

It happens, obviously, only if the default charset of the browser is different from utf8 :D

StefanoCappellini avatar Sep 13 '22 00:09 StefanoCappellini

See: https://github.com/oscarmorrison/md-page/blob/main/docs/common_problems.md

oscarmorrison avatar Dec 13 '22 01:12 oscarmorrison