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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

function mthname(1) for "de-at" language returns "J?nner" instead of "Jänner" (January) - very strange (März/March works perfectly)

(0) ShareShare
ReportReport
Posted on by

Hi there,

i got a strange problem while using function mthname().

we are using the language "de-at" in AX2009 and if we use the function mthname() it returns "Jنnner" instead of "Jänner", if the date is in january.

The conversion of "march" works perfectly - so it doesn't seem to be a problem with the german umlauts.

i was looking in the Label-files, and the one and only "wrong" label is "@SYP2528: - als Toleranzwert von Jنnner bis Mنrz 2010 oder im 1. Quartal 2010", there doesn't exits a label for "Jنnner" - so it seems to be a system-near conversion of the name not using the label-files - am i wright?

i didn't find any solution or others with the same problem -  any ideas?

is there a wrong configuration in system? which settings should i check?

Kernel-Version: 5.0.1600.1578
Application version: 5.0.1500.4570 

thanks in advance!

regards,
christopher

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dick Wenning Profile Picture
    8,705 Moderator on at

    looks like Unicode.

    what code is used?

  • Christopher Gily Profile Picture
    on at

    Hi,

    thanks to your response.

    the systems should be configured to use unicode, but where can i check the used code?

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    window region settings of the user (not shure)

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    labels are written in UTF8

    If you just open the label.ald with notepad, does shows correct?

  • Christopher Gily Profile Picture
    on at

    the windows-region-setting is set to "german (austria)" - this setting is done also for non-unicode-programs.

    if i open the label-file with notepad, the label is shown correct.

    But i think, that the method "mthname()" doesn't use labels to convert the month-number to the month-name.

    if i use the Label "@SYS24776 Jänner" from axSysde-at.ald in AX (Infolog, or something else), ths system shows this label correct.

    i changed the label "@SYS24776 Jänner" to another text, and the method "mthname(1)" returns still "Jنnner" - so, where does the method get the (wrong) text for conversion?

    which output do you get, if you test the following in your system (if possible) in a job:

    infolog.language('de-at'); //change the language to austria

    info(mthname(1)); //output the monthname

    --> what show's your infolog? "Jänner" or Jنnner"?

  • Community Member Profile Picture
    on at

    I'm on a newer AX 2009 version and it shows correctly as "Jänner". Guess you could install the latest update rollup or hotfixes to resolve this issue.

  • Community Member Profile Picture
    on at

    Hello Christopher!

    Any news on this topic?

    Regards, Ballhopper

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans