記得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拉丁字以外的字元呢?
harbour 文字模式的中文
Re: harbour 文字模式的中文
太久忘了!jonce 寫:記得ssbss大大以前好像有貼過,但找不到底了
最近在試ubuntu,
harbour文字模式下 say 中文 cp950/ut8 均正常,
:
唯獨get 中文會亂碼,
遍尋有沒有 "asc" or ">" 的地方截掉中文
就是找不到,
不知ssbbs大還記得改那裏嗎?
我也好奇怪己經支援unicode的harbour,
怎麼還是會截掉ascii拉丁字以外的字元呢?
在 console 下,須先下 chcp 950,
再來就可能要修改原始 tget.prg,
早期的 clipper 也是如此解決中文字堆疊/吃字問題.
line ID: ssbbstw
WeChat ID: ssbbstw
WeChat ID: ssbbstw
-
- 文章: 1
- 註冊時間: 2022-04-21, 18:18
Re: harbour 文字模式的中文
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
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