1 頁 (共 1 頁)

harbour 文字模式的中文

發表於 : 2015-03-01, 22:15
jonce
記得ssbss大大以前好像有貼過,但找不到底了

最近在試ubuntu,
harbour文字模式下 say 中文 cp950/ut8 均正常,
唯獨get 中文會亂碼,

在src/rt/下找過去
readkey.prg
readvar.prg
tget.prg
tgetlist.prg
tgethb.prg
遍尋有沒有 "asc" or ">" 的地方截掉中文
就是找不到,

不知ssbbs大還記得改那裏嗎?

我也好奇怪己經支援unicode的harbour,
怎麼還是會截掉ascii拉丁字以外的字元呢?

Re: harbour 文字模式的中文

發表於 : 2015-03-02, 16:29
admin
jonce 寫:記得ssbss大大以前好像有貼過,但找不到底了

最近在試ubuntu,
harbour文字模式下 say 中文 cp950/ut8 均正常,
:
唯獨get 中文會亂碼,
遍尋有沒有 "asc" or ">" 的地方截掉中文
就是找不到,

不知ssbbs大還記得改那裏嗎?

我也好奇怪己經支援unicode的harbour,
怎麼還是會截掉ascii拉丁字以外的字元呢?
太久忘了!
在 console 下,須先下 chcp 950,
再來就可能要修改原始 tget.prg,
早期的 clipper 也是如此解決中文字堆疊/吃字問題.

Re: harbour 文字模式的中文

發表於 : 2022-04-27, 10:17
sales.yrsoft
Hi Junce,

Great to see you here, knowing you are the expert for Harbour programing language in Taiwan.

Console & GUI not support Chinese characters for input or display
Would you please kindly try the example located at “C:\MiniGUI\SAMPLES\BASIC\ConsoleToGUI” found it is not support Chinese characters for input or display.

1. screenshot for your reference as attached shown Console & GUI not support Chinese characters for input or display.
2. I already set language characters :
3. Any solution for get 中文會亂碼?

Demo1.prg
REQUEST HB_CODEPAGE_UTF8 //RBT ADD
FUNCTION Main()
hb_cdpSelect( "UTF8" ) //RBT ADD

Demo2.prg
#include "minigui.ch"
REQUEST HB_CODEPAGE_UTF8 //RBT ADD
FUNCTION Main()

hb_cdpSelect( "UTF8" ) //RBT ADD

Robert Chen/Taipei
Console and GUI not support Chinese.jpg
Console and GUI not support Chinese.jpg (54.85 KiB) 已瀏覽 3371 次