Ticket #2528670 (checkedin defect)
Reporterbzbugs |
Opened: 12/2/09 Last modified: 12/10/09 Status: checkedin Type: defect Resolution: fixed |
Owner Adam Moore |
Target Release: Priority: P3 (normal) |
|---|---|---|---|
| Summary: | [bz 3215571] Regression in 2.8: Get no longer uses UTF-8 as default encoding | ||
| Description: | In YUI 2.7 and earlier, the Get utility used UTF-8 as the default encoding for scripts and CSS files. In YUI 2.8, it no The test case in Steps to Verify shows the change: With YUI 2.7, the string "æååã" shows up correctly |
||
| Type: | defect | Observed in Version: | 2.8.0 |
| Component: | Get Utility | Severity: | S3 (normal) |
| Assigned To: | Adam Moore | Target Release: | |
| Location: | Priority: | P3 (normal) | |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | Use a server that does not set the charset parameter in the HTTP Content-Type header for JavaScript files. Use the following two one-line scripts: mojibake-default.js: mojibake-unicode.js: and the following HTML page loading them: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <h2>Loaded using YUI Get with default charset</h2> <p id="default"></p> <h2>Loaded using YUI Get with charset=utf-8</h2> <p id="unicode"></p> <!-- YUI 2 scripts --> <script type="text/javascript"> YAHOO.util.Get.script("mojibake-default.js", { YAHOO.util.Get.script("mojibake-unicode.js", { </script> </body> To test with YUI 2.8, replace "2.7.0" in the script src attributes with "2.8.0r4". When loading the page, the string "æååã" should show up twice. |
||


nodes get charset='utf-8' by default. [fixes #2528670].
View Commit: