Author Topic: Generate Document Unicode-encodes Umlauts but only in Requirement-Notes-Fields  (Read 3064 times)

nafetsreuab

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Dear Forum,

generating a pdf or docx-file through document generation (F8) Unicode-encodes Umlauts (öüä) and some special-signs (ß) in the export-document.

Example:

Type: FunctionalRequirement
Name: ä

Requirement Notes-Field: ä

During export only the umlauts in the Requirement-Notes-Field get Unicode-encoded not the Name-field even though it contains the same text.

Result:

Name: ä
Notes: ä

I tried all possible variations of Codepage/Language/Charset to no avail.

any help is greatly appreciated.

Regards

Steve

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13224
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
How do you get the notes into the document?

That matters because the notes in EA are stored using a markdown format.
When getting the notes through an SQL or script fragment, you need to tell EA that the notes contain formatted text, and it will translate it for you.

If you do it using the regular templates, you shouldn't have that problem because EA knows it needs to translate notes fields.

You can test this theory by setting test bold in the notes of your requirement.
That show up as <b>bold text</b>

Geert

nafetsreuab

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Hi Geert,

thanks for your time.

I just select Functional Requirement from the Toolbox and drop it in a folder with other requirements or into a completely new folder.
Then i select the requirement and simply change Name and type 'ö' in The notes field. No manual sql at all.

Then as described, -> F8, Generate. then examine the resulting document. Then, the notes-field in the document shows &#246;

Regarding your test; I set <b>bold text</b> in the notes field. Result in document is similar wrong:

&lt;b&gt;bold text&lt;/b&gt;

Looks like EA is not capable of doing translation.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13224
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Which template are you using? It's the template that could possibly use sql or a script to get the info.

Geert

nafetsreuab

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
I feel sorry. Indeed there is sql fragment in the template i inherited.

Code: [Select]
select CASE
WHEN id.value is null THEN '--'
ELSE id.value END as reqid, req.note as reqnote, req.name as reqname
from (((t_object as uc
left join t_connector as rcon on rcon.Connector_Type ='realisation' and rcon.end_object_id = uc.object_id)
inner join t_object as req on req.object_id = rcon.start_object_id)
left join t_objectproperties as id on id.object_id = req.object_id and id.property ='Customer_UID')
where uc.object_type = 'usecase'
and uc.object_id =  #OBJECTID#
order by reqid desc

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13224
  • Karma: +550/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

nafetsreuab

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Thank you alot! Thats it. Works.  :)