Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366023

Summary: Encoding of ReqIf XML file should be utf-8
Product: [Modeling] MDT.RMF Reporter: Mark Broerkens <eclipse>
Component: Reqif-1.0Assignee: Mark Broerkens <eclipse>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P1 CC: michael, uros.malensek
Version: unspecified   
Target Milestone: m12.01   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip
none
Printed ProR Requirement document into html with charset UTF-8
none
Encoding changed from utf-8 to cp1250 to get special character.
none
Case with data encoding corruption when printing to html. none

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