![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Symbols not appearing correctly Topic Summary: My less than or equal to symbol appears as a £ Created On: 13-Oct-2008 12:20 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I have read other posts which are similar to this, but not read an answer to the problem. I have a basic script that reads the object text, heading and ID from the object it is linked to and writes it into a table. Unfortunately, where there should be a the less than or equal to symbol (among others) I get a £ instead. Does anyone have a resolution to this yet? This is also a problem when exporting a document from DOORS. I have DOORS version 8.1.0.6 Thanks in advance. Jo. |
|
![]() |
|
![]() |
|
Jo, if the symbol is really a 'symbol' then using a simple script is not a correct approach to copy. When I mean simple, I assume you mean by 'basic script' -- a scipt that copies item as text.
Text is ansi and therefore lots of the symbols become translated to ansi values. There are several approach to solve the problem -- but no easy solution. -- Translate the symbols to ansi. -- Use richtext -- Translate to HTML character codes Probably best approach is do not use symbols in DOORS no more than you have to. |
|
![]() |
|
![]() |
|
Ron, not quite sure what you mean.
My script gets the linked object text and outputs it using (target_lnk."Object Text") How do I translate the symbols to ansi or HTML character codes? I tried using rich text (richText(target_lnk."Object Text")) but ended up with a load of nonsense: "{\rtfl\ansi\ansicpg1252..."} |
|
![]() |
|
![]() |
|
The absolute best way is to have the authors put in something meaningful for your purpose.
DOORS is mainly about displaying data that is entered in to attributes -- and Telelogic doesn't concentrate on making life of a dxl programmer easy. |
|
![]() |
|
![]() |
|
I've sorted it. I think I just had my richText stuff a bit mixed up.
string s = probeRichAttribute_(target_lnk."Object Text", false) new_obj."Object Text" = richText(s) |
|
![]() |
Telelogic DOORS
» General Discussion
»
Symbols not appearing correctly
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.