web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Invalid character in chuenese text in AX 2012 r3

(0) ShareShare
ReportReport
Posted on by 30

Hi team,

I have found one invalid character in Chienese text. Because of that I got hexadecimal invalid character error while exporting data in excel.

Kindly let me know how I will remove the invalid character through x++ from text .

Please give me more shed on this 

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at
    RE: Invalid character in chuenese text in AX 2012 r3

    strRem

    docs.microsoft.com/.../xpp-string-run-time-functions

  • @rp@n Profile Picture
    30 on at
    RE: Invalid character in chuenese text in AX 2012 r3

    Hi Ergun,

    I tried this, but I unable to paste the invalid character in to the strRem() function. That's why unable to remove the invalid character from text.

    I copied the whole Chinese text in notepad. From where I copied only the invalid character and try to paste in to stream function. But unable to paste.

    Plesse give me more shed on this

    Thanks!

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at
    RE: Invalid character in chuenese text in AX 2012 r3

    It's hard to say without seeing it (I don't understand why you can't use the character), but if you know what position it is in the text you have, you can split it with substr and set the relevant character into a variable and use that variable to make strRem.

    Or, you can try with Unicode Code values or by reading the character from a different place, but as I said at the beginning, I don't understand why you can't use the character.

    Can you show with an example?

  • @rp@n Profile Picture
    30 on at
    RE: Invalid character in chuenese text in AX 2012 r3

    hi Ergun,

    疾病发展论坛。--展台

    I wants to remove the last character ( )only. But in AX I unable to paste the specific character.

    please give me more shed on this.

    thanks!

  • @rp@n Profile Picture
    30 on at
    RE: Invalid character in chuenese text in AX 2012 r3

    hi Ergun,

    InvCharcr.jpg

    3348.J1.jpg

    please give me more shed on this

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at
    RE: Invalid character in chuenese text in AX 2012 r3

    Do you want to delete the "台" character (in the question, the parentheses are empty) or is there a different character and we can't see it?

    str value = "疾病发展论坛。--展台";
        
    value = strRem(value,"台");
    
    info(value);

  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at
    RE: Invalid character in chuenese text in AX 2012 r3

    We know the position(last char(strLen(value))), you can solve it with substr or strDel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans