Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8410] MobileWeb: Escape characters showing in i18n strings.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-29T13:51:39.000+0000
Affected Version/sRelease 2.0.0, Release 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-07
ComponentsMobileWeb
Labelsn/a
ReporterPatrick Seda
AssigneeChris Barber
Created2012-03-29T07:50:52.000+0000
Updated2012-08-07T13:50:56.000+0000

Description

When using i18n strings, escape characters before quotes are erroneously showing in MobileWeb. This is the contents of strings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <string name="test1">\'Single Quotes\'</string>
    <string name="test2">\"Double Quotes\"</string>
    <string name="test3">No Quotes</string>
</resources>

Attachments

FileDateSize
Archive.zip2012-03-29T10:42:32.000+00003120349
i18n_escape Android.png2012-03-29T07:50:52.000+000010786
i18n_escape iOS.png2012-03-29T07:50:52.000+000010740
i18n_escape MobileWeb.png2012-03-29T07:50:52.000+000010997

Comments

  1. Chris Barber 2012-03-29

    We can fix this, but I'm not sure why you would need to escape in the first place. If anything, things would use html entities like &quot;.
  2. Patrick Seda 2012-03-29

    Won't that break things for iOS and Android though?
  3. Chris Barber 2012-03-29

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1884
  4. Lokesh Choudhary 2012-08-07

    Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120807070117 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1

JSON Source