<?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>138239</bug_id>
          
          <creation_ts>2014-10-30 22:32:09 -0700</creation_ts>
          <short_desc>Interpret file:// URLs as UTF-8 on non-Windows</short_desc>
          <delta_ts>2014-11-02 21:44:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></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="Ben Boeckel">mathstuf</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1045226</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Boeckel">mathstuf</who>
    <bug_when>2014-10-30 22:32:09 -0700</bug_when>
    <thetext>Currently, file:// URLs are interpreted using Latin-1 which causes mojibake in directories with utf-8 characters in the filenames. Windows should probably use utf-16 here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045590</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-11-02 01:03:21 -0800</bug_when>
    <thetext>Could you please elaborate on how you observe this issue? Is it though WebKit API, or in a browser?

In my experience, file:// URLs are interpreted as utf-8, Safari has no problem dealing with these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045595</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Boeckel">mathstuf</who>
    <bug_when>2014-11-02 04:08:42 -0800</bug_when>
    <thetext>Sorry, not the URL itself, but the content at the URL. And yes, in a browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045653</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-11-02 21:44:25 -0800</bug_when>
    <thetext>File-based documents respect default encoding that is set in Safari preferences, so one can change that to UTF-8 if needed.

I don&apos;t know how to tell whether UTF-8 is the most common encoding for local plaintext files, but in any case, a web browser is probably not the best application to display those.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>