Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: wrong character encoding in dropdown list

  1. #1
    nixsnake is offline Member
    Join Date
    Jun 2008
    Posts
    6

    Default wrong character encoding in dropdown list

    all fields i have changed in russin with out any trouble...but in dropdown list i have this москвРafter i save list, befor it all ok. can you help me? i'am from russia.

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: wrong character encoding in dropdown list

    What version of Sugar are you using?
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    nixsnake is offline Member
    Join Date
    Jun 2008
    Posts
    6

    Default Re: wrong character encoding in dropdown list

    Quote Originally Posted by clint
    What version of Sugar are you using?
    5.0.5e with or without languge pack not matter...becourse mistake is same in both tasks

  4. #4
    valenoks is offline Junior Member
    Join Date
    Jul 2008
    Posts
    1

    Default Re: wrong character encoding in dropdown list

    Quote Originally Posted by nixsnake
    5.0.5e with or without languge pack not matter...becourse mistake is same in both tasks
    Как успехи? Нашли решение проблемы?

  5. #5
    jaryn is offline Member
    Join Date
    Jun 2008
    Location
    CZ
    Posts
    6

    Smile Re: wrong character encoding in dropdown list

    hi nixsnake

    i had the same problem just with Czech special letters (as ěščřžύανιůň ). My solution is not kosher but works and you can improve it.
    here comes the answer:
    in modules/ModuleBuilder/javascript/SimpleList.js file find handleSave:function. there should be line like this

    out += '"'+encodeURIComponent(name)+'":"'+encodeURICompon ent(value)+'"'

    javascript native function encodeURIComponent does the muck up. Replace it with your own one. Try to use my one:

    function myEncode(str)
    {
    var out = str;
    out.replace("%", "%025");
    out.replace("{", "%07b");
    out.replace("}", "%07d");
    out.replace("\"", "%022");
    out.replace(":", "%03a");
    return(out);
    }

    there might be more characters to be replaced - this is a question for some more expirienced sugar developer who knows

    hope it helps

    Jaroslav Misek

  6. #6
    plafrance is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    10

    Default Re: wrong character encoding in dropdown list

    Quote Originally Posted by clint
    What version of Sugar are you using?
    Clint,

    Why do you ask this question if don't even reply?!?!?!?!?!

    Pierre

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    Sγo Paulo - Brazil
    Posts
    8,335

    Default Re: wrong character encoding in dropdown list

    Quote Originally Posted by plafrance
    Clint,

    Why do you ask this question if don't even reply?!?!?!?!?!

    Pierre
    Take easy, man

    Clint wanted to ask you additional informations to let us (or himself) to help you.
    It is pretty normal an user ask something and another one suggest some fix based on answer.

    Hi all

    Make sure the charset of the language files and sugar is UTF-8.
    It is also interesting to figure out the apache charset.

    Cheers
    Andrι Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    Sγo Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  8. #8
    plafrance is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    10

    Default Re: wrong character encoding in dropdown list

    Pardon me if I seemed rude. I was trying to understand how the SugarCRM community is working.
    Clint asked that question on 2008-06-24, Nicksnake answered on 2008-06-25 and nothing from a Sugar team member since then.
    Was the solution proposed by Jaryn the good one?

    Pierre

  9. #9
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: wrong character encoding in dropdown list

    I've reproduced this issue and found a workaround. I created bug number 24984 to track this.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  10. #10
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: wrong character encoding in dropdown list

    From the bug report above:

    edit the language specific file in the custom directory. For instance for French, edit custom/include/language/fr_fr.lang.php directly with any standard text editor and correct the string.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dropdown list editor doesn't change when saved
    By jmcalderond in forum General Discussion
    Replies: 2
    Last Post: 2008-04-28, 02:37 PM
  2. Dropdown list editor doesn't change when saved
    By jmcalderond in forum Help
    Replies: 1
    Last Post: 2008-04-25, 05:09 PM
  3. Replies: 8
    Last Post: 2008-04-08, 02:58 PM
  4. Replies: 0
    Last Post: 2008-04-05, 12:18 PM
  5. Related Dropdown List (conditioned)
    By nramirezf in forum Feature Requests
    Replies: 6
    Last Post: 2008-02-03, 11:01 AM

Bookmarks

Posting Permissions

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