Options

Create manual notes with special character, example "é"

MEMEMEME Member Posts: 3
edited 2010-07-01 in NAV Three Tier
Hi,

When I create manual notes (It is OK), but in screen notes RTC (the character "é" is not interpreted correctly to display) ;


CLEAR(RecGRecordLink);
RecRefG.GETTABLE(Rec);
RecGRecordLink."Link ID" := 0;
RecGRecordLink."Record ID" := RecRefG.RECORDID;
RecGRecordLink.Type := RecGRecordLink.Type::Note;

TxtGNotes := 'Bloqué';
CharGLen := STRLEN(TxtGNotes);
TxtGNotes := FORMAT(CharGLen) + TxtGNotes;

RecGRecordLink.Note.CREATEOUTSTREAM(OutGNotes);
OutGNotes.WRITETEXT(TxtGNotes);

RecGRecordLink.Created := CURRENTDATETIME;
RecGRecordLink."User ID" := USERID;
RecGRecordLink.Company := COMPANYNAME;
RecGRecordLink.INSERT(TRUE);


Thanks for your answers.

Comments

  • Options
    kinekine Member Posts: 12,562
    Try it in different way. Write the text in RTC and try to read it in code. Look how it is created and try to understand it... it looks like you need to do some conversion...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    MEMEMEME Member Posts: 3
    Hi,

    thank you.

    I do it, and i replace "é" in my text by result of insert manuel from RTC.

    And it is OK.
  • Options
    rdebathrdebath Member Posts: 383
    I suppose I've always wondered why Navision A/S thought using the OEM character set was a good idea for a windows application. Anyone know ? K?
  • Options
    kinekine Member Posts: 12,562
    Because all was based on DOS version? ;-) (backward compatibility is something what makes the development slower)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    rdebathrdebath Member Posts: 383
    That would be my guess, but I think it would have had to be a really messy upgrade to make it better there than at the database interface (where eg MS-SQL does it).

    I really don't understand why MS have done the same thing in the 2009 update though.
  • Options
    kinekine Member Posts: 12,562
    Because same thing.... backward compatibility... until Native DB is discontinued, you cannot change much... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    rdebathrdebath Member Posts: 383
    Yes, that'll be the excuse. Of course, this time round they could have fixed the character sets but ... oh what's the use. Sometimes I just wish Microsoft actually cared about more than money. :(
  • Options
    kinekine Member Posts: 12,562
    rdebath wrote:
    Yes, that'll be the excuse. Of course, this time round they could have fixed the character sets but ... oh what's the use. Sometimes I just wish Microsoft actually cared about more than money. :(
    If you have read the statement of direction, you know when the correct point for changing this will be... ;-) it is just behind doors... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.