Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Template:Embed text can't display Multibyte Characters

1 view
Skip to first unread message

potappo

unread,
Oct 21, 2009, 12:10:34 PM10/21/09
to dev-mdc
Hi,
"Template:Embed text" can't display multibyte characters.
https://developer.mozilla.org/Template:Embed_text

"Template:Embed text" uses DekiScript's "web.text" function, but
"web.text" can't read mutibyte characters
from url source.

Test page:https://developer.mozilla.org/User:Potappo/Test
The first sentece In this page is
{{web.Text("http://potappo.sakura.ne.jp/test.txt")}}.

I think the "web.text" function fail to or do not detect character encoding.

regards.


--
potappo
MDC Japanese Translation Leader
mail:pot...@gmail.com
blog:http://d.hatena.ne.jp/potappo/

Steve Bjorg

unread,
Oct 21, 2009, 12:33:34 PM10/21/09
to potappo, dev-mdc
Web.Text uses the encoding specified by the mimetype. In this case,
it comes back with Content-Type set to "text/plain" which means it's
US-ASCII as per RFC-2045/2046.

- Steve

--------------
Steve G. Bjorg
http://mindtouch.com
http://twitter.com/bjorg
irc.freenode.net #mindtouch

> _______________________________________________
> dev-mdc mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-mdc

potappo

unread,
Oct 22, 2009, 6:57:32 AM10/22/09
to Steve Bjorg, dev-mdc
2009/10/22 Steve Bjorg <ste...@mindtouch.com>:

> Web.Text uses the encoding specified by the mimetype. In this case, it
> comes back with Content-Type set to "text/plain" which means it's US-ASCII
> as per RFC-2045/2046.

OK. I understand. Thanks for an information about Web.Text.

Sheepy, in the MDC server, "text/html" should be configured to set
"charset=UTF-8". Can this setting be possible?

http.conf or .htaccess example:

AddType "text/html; charset=utf-8" html htm

2009/10/22 Steve Bjorg <ste...@mindtouch.com>:

0 new messages