Why display degree Celsius is so much trouble


http://wp.me/ph3BR-k1

Why display degree Celsius is so much trouble

this is not the first time of deal with degree Celsius displaying  in Windows operating system since day one, always troubling me is the degree Celsius and the symbol.

Native English version of Windows should has no such issue but once used with localized interface, for example, simplified Chinese version or traditional Chinese version, degree Celsius will display and became an Unicode character (蚓, means worm, 蚯蚓 = earthworm).

I had never use symbol of degree Celsius in my own design or work done because the improper display will be happen from time to time. My solution, to use (*C) as an substitution because (*) and (C) are pure ASCII characters, away the trouble by unicode; side effect, user has to adjusts mind to this almost the same display if they want to read degree Celsius and the symbol.

However, this time, we have no choice because no source code published and I have to figure out a quick solution until my own design is ready. you can refer to author’s webpage to download or trial.

http://www.kmitl.ac.th/~kswichit/PLogger/index.html

problem –

nEO_IMG_Degree C symbol display problem.jpg

solution –

nEO_IMG_Degree C symbol display problem, how to.jpg

result –

neo_img_degree-c-symbol-display-problem-solution.jpg

How to do that,

use Ultraedit, open this PLogger.exe in HEX mode

replace byte sequences as,

1) 20b043 -> 202a43, about 121 occurances

2) 02b043 -> 022a43, about 17 occurances

3) b04300 -> 2a4300, about 17 occurances

the display will change to *C, easy to read

AUG/28/2011, xiaolaba

PC set up for simulating the ADC input to this program,

uses other PC, setup com1 as 19200, N, 8, 1

run a.bat

a.bat

————–

copy/B out.bin com1:

a

————–

out.bin, in HEX mode, 0d = 13, \r; 0x44 = ASCII “D"

———–

0d 44 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx

———–

note : xxxx, anything you want, 8 channel ADC reading by Atmega8

how to run the simulator

1) invoke PLogger.exe

2) setup COM port, uses the icon under menu item [RUN], USB COM port is ok as long as you run this in XP compatible mode

3) connect COM port, next to right of setup COM port icon

4) PLogger.exe must read “>", until status bar show “connected"

5) push the [record]

6) goto the PC with simulator, run a.bat

you will go…..as following

nEO_IMG_logging is running ok2.jpg

廣告

2 thoughts on “Why display degree Celsius is so much trouble

  1. I really like your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to design my own blog and would
    like to find out where u got this from. kudos

    1. Thanks for coming

      You can try WordPress and some available themes are free

      But you can also pay for that with more rich of features

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s