Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366023 - Encoding of ReqIf XML file should be utf-8
Summary: Encoding of ReqIf XML file should be utf-8
Status: CLOSED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P1 critical (vote)
Target Milestone: m12.01   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 07:59 EST by Mark Broerkens CLA
Modified: 2014-08-05 02:20 EDT (History)
2 users (show)

See Also:


Attachments
mylyn/context/zip (1.64 KB, application/octet-stream)
2012-01-11 15:49 EST, Mark Broerkens CLA
no flags Details
Printed ProR Requirement document into html with charset UTF-8 (808 bytes, text/html)
2014-08-05 02:01 EDT, Uroš Malenšek CLA
no flags Details
Encoding changed from utf-8 to cp1250 to get special character. (809 bytes, text/html)
2014-08-05 02:04 EDT, Uroš Malenšek CLA
no flags Details
Case with data encoding corruption when printing to html. (5.48 KB, application/octet-stream)
2014-08-05 02:12 EDT, Uroš Malenšek CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2011-12-08 07:59:16 EST
The encoding of the ReqIf XML file is currently set to 'ASCII'. 
'UTF-8' should be used in order to allow NON-ASCII characters.
Comment 1 Mark Broerkens CLA 2012-01-11 15:49:07 EST
Created attachment 209341 [details]
mylyn/context/zip

explicitly set the default encoding to 'UTF-8'
Comment 2 Mark Broerkens CLA 2012-01-11 15:55:02 EST
validated by creating new reqif file in RMF ProR UI.
Comment 3 Mark Broerkens CLA 2012-02-12 15:27:58 EST
since I am the reporter I think I can now close the bug
Comment 4 Uroš Malenšek CLA 2014-08-05 02:01:05 EDT
Created attachment 245703 [details]
Printed ProR Requirement document into html with charset UTF-8

File has declared UTF-8 charset. But special characters are not coded in utf-8.
Comment 5 Uroš Malenšek CLA 2014-08-05 02:04:19 EDT
Created attachment 245704 [details]
Encoding changed from utf-8 to cp1250 to get special character.

After chnaging encoding in html head, special characters are sort of fixed.
Comment 6 Uroš Malenšek CLA 2014-08-05 02:12:27 EDT
Created attachment 245705 [details]
Case with data encoding corruption when printing to html.

Source data for encoding check.

File has been created on windows 8 PC.
Eclipse:
Version: Luna Release (4.4.0)
Build id: 20140612-0600

RMF/ProR - ProR Requirements Engineering Platform
Version: 0.10.0.201406030302
Build id: 0.10.0.201406030302

Note:
In "Preferences->General->Workspace" property "Text file encoding" is set to default (Cp1250)
Comment 7 Uroš Malenšek CLA 2014-08-05 02:20:34 EDT
I have an issue with encoding on windows 8, when printing to html.

See 3. attched files.

encoding.reqif has been created on windows 8 machine.

Note: "Preferences->General->Workspace" property "Test file encoding" is set to Default(Cp1250)

Eclipse:
Version: Luna Release (4.4.0)
Build id: 20140612-0600

RMF/ProR - ProR Requirements Engineering Platform
Version: 0.10.0.201406030302
Build id: 0.10.0.201406030302