<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27095</bug_id>
          
          <creation_ts>2009-07-08 15:12:12 -0700</creation_ts>
          <short_desc>Garbled text at http://trangnhat.net</short_desc>
          <delta_ts>2020-10-23 13:51:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Evangelism</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://trangnhat.net/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jungshik Shin">jshin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jensimmons</cc>
    
    <cc>xlyuan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>130535</commentid>
    <comment_count>0</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-07-08 15:12:12 -0700</bug_when>
    <thetext>From the chromium bug tracker ( http://crbug.com/9641 )

1. Go to http://trangnhat.net/
2. Hover mouse to link &quot;Tin chuyên ngành - Báo chí&quot;
   &gt;&gt;Second tab in the middle of the page
3. Observe the content popped up


The file is sent by the server with just &apos;Content-Type: text/html&apos; so that we have to
honor what&apos;s in the file (meta charset). Now I wonder why Firefox does not honor that
in this case. Perhaps, it&apos;s coming through XHR and Firefox always interprets that as
in UTF-8 (depending on how it&apos;s pulled). 

The html page loaded separately ( http://trangnhat.net/chuyenmuc/tinchuyennganh.htm )
is interpreted as windows-1252 by Firefox and is garbled. 

The html snippet in the main html is as following. The second &lt;li&gt; corresponds to the middle tab in the main page. 

&lt;div&gt;&lt;ul id=&quot;maintab&quot; class=&quot;shadetabs&quot;&gt;
&lt;li class=&quot;selected&quot;&gt;&lt;a href=&quot;#default&quot; rel=&quot;ajaxcontentarea&quot;&gt;Tin T&amp;#7913;c hàng
ngày&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;&quot;&gt;&lt;a rel=&quot;ajaxcontentarea&quot; href=&quot;chuyenmuc/tinchuyennganh.htm&quot;&gt;Tin 
chuyên ngành - Báo chí&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;&quot;&gt;&lt;a rel=&quot;ajaxcontentarea&quot; href=&quot;chuyenmuc/news.htm&quot;&gt;International
News&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id=&quot;ajaxcontentarea&quot; class=&quot;contentstyle&quot; style=&quot;width: 607px; height: 200px&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>130747</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-07-09 15:15:07 -0700</bug_when>
    <thetext>Per XMLHttpRequest spec, it is correct behavior to look inside HTML responses for META, see &lt;http://www.w3.org/TR/XMLHttpRequest/#text-response-entity-body&gt;. Apparently, Firefox does not implement this.

As an aside, this page is particularly buggy - its title and body are in different encodings, as you can see in Safari or Firefox by opening it directly.

To Evangelism.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>