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

Bug 190698

Summary: [Translated Article] "Graphics Context - Quick on the draw" Chinese version
Product: Community Reporter: yipsilon zheng <yipsilon>
Component: ArticlesAssignee: community.articles-inbox <community.articles-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://www.eclipse.org/articles/Article-SWT-graphics/SWT_graphics.html
Whiteboard:
Attachments:
Description Flags
The article(HTML) file. none

Description yipsilon zheng CLA 2007-06-03 13:34:19 EDT
Our community memeber has translated the article "Graphics Context - Quick on the draw" to Chinese. 

The original article address is http://www.eclipse.org/articles/Article-SWT-graphics/SWT_graphics.html

We reviewed it and want to commit to article corner.


Yipsilon

Chinese Eclipse Community
http://www.eclipseworld.org
Comment 1 yipsilon zheng CLA 2007-06-03 13:35:16 EDT
Created attachment 69894 [details]
The article(HTML) file.
Comment 2 Wayne Beaton CLA 2007-06-04 15:09:43 EDT
I've tried to convert it to the new template. It looks great on my personal workstation, but it seems that the character set doesn't look right when I serve it from eclipse.org. Does it look right to you?

http://www.eclipse.org/articles/article.php?file=Article-SWT-graphics/index_cn.html
Comment 3 yipsilon zheng CLA 2007-06-04 22:27:32 EDT
(In reply to comment #2)
> I've tried to convert it to the new template. It looks great on my personal
> workstation, but it seems that the character set doesn't look right when I
> serve it from eclipse.org. Does it look right to you?
> 
> http://www.eclipse.org/articles/article.php?file=Article-SWT-graphics/index_cn.html
> 

Maybe, the default encoding of that page is ISO-8859-1, it only supports western characters.

I try to read it successfully by UTF-8 encoding.
Comment 4 yipsilon zheng CLA 2007-06-05 06:21:07 EDT
(In reply to comment #2)
> I've tried to convert it to the new template. It looks great on my personal
> workstation, but it seems that the character set doesn't look right when I
> serve it from eclipse.org. Does it look right to you?
> 
> http://www.eclipse.org/articles/article.php?file=Article-SWT-graphics/index_cn.html
> 

When I view this page, it shows the encoding is ISO-8859-1. After I change the encoding to UTF-8, it can be displayed correctly.

I think the reasons is using "header('Content-Type: text/xhtml; charset=ISO-8859-1');" codes in php of that page.
Comment 5 Wayne Beaton CLA 2007-07-16 15:40:24 EDT
I believe that I've sorted out the character encoding issue. I've posted the link on Eclipse Corner (and resources).

Please provide me (via email) with the author's contact info (name, address, phone #) and shirt size; I'll send some Eclipse swag.