Results 1 to 5 of 5

Thread: FontAwesome character encoding in Production

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Pennsylvania
    Posts
    37
    Answers
    1

    Default Answered: FontAwesome character encoding in Production

    Hopefully this gets through with all the recent spam on this forum.

    I'm manually adding the font awesome unicode value to the html column text ex.

    HTML Code:
    <Column text='&#xf073;' />
    This works fine in development. But when sencha cmd compiles for production it's altering this value into some other strange character.

    HTML Code:
    text:""

    Is there a setting in ExtReactWebpackPlugin we can set to fix this?

  2. Actually. It seems that If I just encapsulate the string in an expression then it resolves the issue:

    HTML Code:
    <Column text={'&#xf073;'} />

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Pennsylvania
    Posts
    37
    Answers
    1

    Default

    Actually. It seems that If I just encapsulate the string in an expression then it resolves the issue:

    HTML Code:
    <Column text={'&#xf073;'} />

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Pennsylvania
    Posts
    37
    Answers
    1

    Default

    Actually, I spoke too soon. This method solves the issue in the grid but breaks the column display checkmark contextmenu value.

    So I'm back to needing the setting that is breaking the encoding when building for production.

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Pennsylvania
    Posts
    37
    Answers
    1

    Default

    So it seems I can't "un-answer" my question as my answer is more of a partial work around. I really need to fix the encoding issue that is stepping from the "uglify" process I believe of sencha-cmd

  6. #5
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    How about this workaround? Use the css class instead of the entity literal?

    https://fiddle.sencha.com/?extreact#...or&fiddle/27fp

Similar Threads

  1. Using Ext.Encoding in Android return wrong character encoding
    By korka in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 13 Dec 2011, 10:53 PM
  2. Replies: 7
    Last Post: 3 Apr 2010, 4:36 AM
  3. Character set encoding
    By Jacsoft in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 26 Aug 2008, 11:42 AM
  4. problem with character encoding
    By herranzr in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 6 Jan 2008, 6:19 PM
  5. Character encoding
    By mnugter in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 23 Feb 2007, 1:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •