Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26085

BitmapImage Doesn't Load Unicode Path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: Adobe Flex SDK Previous
    • Component/s: Spark: Image
    • Labels:
      None
    • Environment:
      Affected OS(s): Mac
      Language Found: English

      Description

      Steps to reproduce:
      1. Create an image with non-ascii characters in its name (eg "長方形.png")
      2. Create an application with both an mx:Image and an s:BitmapImage with sources set to the image file's path (eg: "assets/images/長方形.png")
      3. Compile and run the application

      This is my source:
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:fc="http://ns.adobe.com/flashcatalyst/2009"
      width="100%" height="100%" fc:previewWidth="955" fc:previewHeight="600"
      backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF" xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <mx:Image source="assets/images/長方形.png"/>
      <s:BitmapImage x="100" source="assets/images/長方形.png"/>
      </s:Application>

      Actual Results:
      mx:Image loads correctly, s:BitmapImage does not

      Expected Results:
      both load correctly

      Workaround (if any):
      change the filename to be ascii-only

      This issue was patched previously for mx:Image in SDK-24648. It would be good to patch it for BitmapImage as well.

        Attachments

          Activity

            People

            • Assignee:
              adobejira Adobe JIRA
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: