[asterisk-bugs] [Asterisk-GUI 0015238]: HTML encoding

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 4 12:17:20 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15238 
====================================================================== 
Reported By:                psztoch
Assigned To:                awk
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   15238
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk GUI Version:       SVN 
Asterisk Version:           1.6.1-rc1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-05-31 17:01 CDT
Last Modified:              2009-06-04 12:17 CDT
====================================================================== 
Summary:                    HTML encoding
Description: 
There is not any parameters for html page encoding.
A lot of systems works on UTF-8.

In example:
linux-server-config-UTF-8
vs
windows-client-InternetExplorer-default-CP1250/ISO-8859-2

Please, add to htmls:
<meta http-equiv="Content-type" content="text/html;charset=..." />
====================================================================== 

---------------------------------------------------------------------- 
 (0106000) davidw (reporter) - 2009-06-04 12:17
 https://issues.asterisk.org/view.php?id=15238#c106000 
---------------------------------------------------------------------- 
The proposed fix assumed it sent XHTML (it included the trailing /). I was
actually giving two different cases.  Basically, the fix is wrong if it
sends HTML. If it sends Appendix C XHTML, the fix is OK, but one also needs
to specify non-default characer sets elsewhere.  It's a resonable
assumption that is isn't true XHTML (appplication/xml+html).

Without a DTD it is technically HTML 2.0.  HTML 2.0 defaults to ISO
8859/1.  However compliance with that was weak, and modern browsers are
likely to treat it as quirks mode HTML 4.01 Transitional. HTML 2.0 doesn't
support meta.

To be valid and safe with current browsers (especially outside USA/Western
Europe) it needs to specify a 4.01 DTD and provide a meta element for the
character set.  In practice, the DTD line is only relevant for validity, or
if you want to force standards mode.

<html> and <head> tags are optional, although <title> and </title> are
not, in HTML (but not XHTML). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-04 12:17 davidw         Note Added: 0106000                          
======================================================================




More information about the asterisk-bugs mailing list