Re: Encoding Issue for .ly Files on CPDL

Hans Åberg <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>
> On 3 Jun 2026, at 14:02, Gabriel Ellsworth <[email protected]> wrote:
> 
> Thanks very much for your help, Silvain, Hans, and Hans.
> 
> IIUC, what CPDL should do is to edit/adjust the HTTP response headers that CPDL’s server sends/returns to browsers.
> 
> Those HTTP response headers should include:
> Content-Type: text/xml; charset=utf-8
> 
> Is all of the above correct?

I made a net search for “how to make http header indicate UTF-8”, and got results like:
https://community.smartbear.com/discussions/soapui_os/how-to-set-encoding-utf-8-in-request-post-/8818
https://stackoverflow.com/questions/4279282/how-to-set-http-header-to-utf-8-using-php-which-is-valid-in-w3c-validator

> And just to confirm, should it be text/xml and not text/plain?

This link says you should have text/plain at least for MIME, and that application/xml supersedes text/xml.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types

There is also:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Type

> On Tue, 2 Jun 2026, Hans Åberg wrote:
> Actually, I made a typo above: the suggestion says one in the Headers tab should add a new header named “Content-Type” (without the quotes) and set the value to “text/xml; charset=utf-8”. :-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.