1. Download our Official Android App: Forums for Android!

How do I resolve this encoding issue?

Discussion in 'Android Development' started by leevoper, Oct 23, 2017.

  1. leevoper

    leevoper Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 23, 2017

    Oct 23, 2017
    3
    0
    5
    I've had this issue since upgrading to gradle 3.3
    [​IMG]

    I have tried the following answers from stack overflow
    None of the solutions fixed the issue. When I went into File > settings > File encodings
    and made sure that all files were using UTF-8. When that didn't work I changed it to system-defaults but none of those attempts fixed the issue.

    All help is appreciated.
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #10
    Points:
    1,988
    Posts:
    8,530
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    8,530
    12,702
    1,988
    Male
    Software developer
    South West of England
    If you tried all those answers, then what about doing a global search and replace for the offending strings?
     
  3. leevoper

    leevoper Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 23, 2017

    Oct 23, 2017
    3
    0
    5
    It's not just the underscore character that get converted to an "¿". See the image below. There appears to be an encoding mismatch somewhere in android studio.
    [​IMG]
     
  4. leevoper

    leevoper Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 23, 2017

    Oct 23, 2017
    3
    0
    5
    Fixed it!
    This turned out to be a editor scheme issue. I think I was using a scheme with a malformed font so to change it I CTRL+ALT+S" naviageted to Colors & Fonts and selected a different scheme then clicked Apply. Lo and behold my text was readable once again. I can now begin programming.
     
  5. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #10
    Points:
    1,988
    Posts:
    8,530
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    8,530
    12,702
    1,988
    Male
    Software developer
    South West of England
    Well done.
     

Share This Page

Loading...