Convert Special Character

Discussion in 'Free Source Codes' started by Sanjay Atpadkar, Jan 17, 2021.

    
  1. Sanjay Atpadkar

    Sanjay Atpadkar New Member


    In Ledger one of Sundry Debtors name is 'Field manager Agricultural' which contains Special Character which is not visible. When export to XML it shows as 'Field manager
Agricultural'. When i export to CSV the Agricultural word comes to next line. I want to remove Special Character (CRLF). How to remove it ?
    View attachment 7888
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    CR is Carriage Return - ASCII value is 13
    LF is Line feed - ASCII value is 10

    You need to alter your ledgers before exporting. Even Character "&" (ASCII value 20) will throw the same response.
     
    Jaydeep Shah likes this.


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Recently, in other threads, some members have given various pointers/functions to remove or trim unwanted spaces....... kindly use that.
     


  4. Jay kumar tailor

    Jay kumar tailor Well-Known Member


    Try This .
    $$RemoveNonAlphaNumWithSplChar
     
    naren1234 and balajimg like this.


  5. Murari Bajaj

    Murari Bajaj Member


    Jay Kumarji I need your Mobile Number.
    Mine is 9829014051

    Thanks
     


  6. Sanjay Atpadkar

    Sanjay Atpadkar New Member


    Thanks Amit Ji and Jay Ji. $$RemoveNonAlphaNumWithSplChar this worked for me.
     


  7. Sanjay Atpadkar

    Sanjay Atpadkar New Member


    I have used this function $$RemoveNonAlphaNumWithSplChar. The problem is that i have to specific other Special character as parameter which is required, which i cannot predict as the user can us any special character.
    $$StringPart:(($$RemoveNonAlphaNumWithSplChar:$Name:" ,[,],(,),|,\,/,!,~,`,<,>,?,',;,:,*,")):0:500
     


  8. Sanjay Atpadkar

    Sanjay Atpadkar New Member


    Any one has solution ? help me.
     


  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Instead of trying to rectify mistakes of users and removing characters.............

    Simply make a condition to force user to use only Alphabets and Numerals.
     
    Jaydeep Shah likes this.


Share This Page