全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2764
推到 Plurk!
推到 Facebook!

如何接收unicode編碼的漢字並正確的顯示出來?

缺席
I_Love_You
一般會員


發表:18
回覆:87
積分:21
註冊:2002-07-24

發送簡訊給我
#1 引用回覆 回覆 發表時間:2002-11-08 08:56:05 IP:211.96.xxx.xxx 未訂閱
各位大大,我有个问题想问一下: 各位大大,我有個問題想問一下: 當我的操作系統是WIN XP的時候,當我的程式中有TEdit或TMemo等元件的時候, 如果我向這些元件中輸入中文字,如果是BIG5編碼的則可以正確顯示,如果是 unicode編碼的,他會先將unicode變成BIG5碼,然後輸出到這些元件上,這樣 問題出現了,當unicode編碼的漢字找不到相對應的BIG5碼漢字時輸出到這些 元件上的漢字就是亂碼(因為unicode編碼的漢字要比BIG5編碼的多)。 所以我想可否讓這些元件直接支持unicode的編碼的漢字,即當我用輸入法 輸入unicode編碼的漢字以後,這些元件也可以直接顯示出來,讓他直接支持 unicode編碼,不曉得這樣可以實現嗎?望大家幫助幫助我,謝謝了,謝謝!!!
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2002-11-08 09:42:56 IP:203.73.xxx.xxx 未訂閱
引言: 各位大大,我有个问题想问一下: 当我的操作系统是WIN XP的时候,当我的程式中有TEdit或TMemo等元件的时候, 如果我向这些元件中输入中文字,如果是BIG5编码的则可以正确显示,如果是 unicode编码的,他会先将unicode变成BIG5码,然后输出到这些元件上,这样 问题出现了,当unicode编码的汉字找不到相对应的BIG5码汉字时输出到这些 元件上的汉字就是乱码(因为unicode编码的汉字要比BIG5编码的多)。 所以我想可否让这些元件直接支持unicode的编码的汉字,即当我用输入法 输入unicode编码的汉字以后,这些元件也可以直接显示出来,让他直接支持 unicode编码,不晓得这样可以实现吗?望大家帮助帮助我,谢谢了,谢谢!!!
不知道以下這篇文章是不是你要的??
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
I_Love_You
一般會員


發表:18
回覆:87
積分:21
註冊:2002-07-24

發送簡訊給我
#3 引用回覆 回覆 發表時間:2002-11-08 14:30:59 IP:211.96.xxx.xxx 未訂閱
RaynorPao大大,您有安装过这个元件吗?因为我在安装的时候在第二步 建一个TntUnicodeVcl_D50.dpk ,不知道怎么做了: 2. Build the design-time package TntUnicodeVcl_D50.dpk or TntUnicodeVcl_D60.dpk (depending upon which version of Delphi you have). You may want to edit the project options first to set the output directories to something specific, so you don't have to guess where the output BPL file will go. 唉,有谁安装过这个元件吗?可否把您在BCB5中的安装过程介绍一下, 小弟我实在是太笨了,谢谢!!!
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#4 引用回覆 回覆 發表時間:2002-11-08 16:16:48 IP:203.73.xxx.xxx 未訂閱
引言: RaynorPao大大,您有安装过这个元件吗?因为我在安装的时候在第二步 建一个TntUnicodeVcl_D50.dpk ,不知道怎么做了:
I_Love_You你好: 我並沒有「安裝」或「使用」過這個元件 只知道有這個元件的存在 我剛剛有到這個元件的網頁去看過 > --
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
I_Love_You
一般會員


發表:18
回覆:87
積分:21
註冊:2002-07-24

發送簡訊給我
#5 引用回覆 回覆 發表時間:2002-11-08 17:46:53 IP:211.96.xxx.xxx 未訂閱
感谢RaynorPao大大的指点,我这就试试看。
Skyer
高階會員


發表:43
回覆:111
積分:120
註冊:2002-04-04

發送簡訊給我
#6 引用回覆 回覆 發表時間:2002-11-08 18:31:55 IP:61.217.xxx.xxx 未訂閱
引言: 感谢RaynorPao大大的指点,我这就试试看。
BPL 有分兩種(maybe 三種) Design time package, Runtime package, Design time & Runtime package Design time package 就是我們常常在用的元件盤上的元件.. 負責處理 design 時的設計 Runtime package 就是程式執行時用到的 library Design time & Runtime 就是把兩個包在一起.. 而我們在安裝新元件時,通常是先 Compile Runtime package 後 再 Install Design time package. (Design time 也是會用到 Runtime 的 library) 所以上面元件的安裝法是先安裝 (Compile) TntUnicodeVcl_Rx0.dpk (R for Runtime, x for 5~7) 再安裝 (install) TntUnicodeVcl_Dx0.dpk (D for Design time, x for 5~7) -- Skyer
------
--
Regards,
Skyer
Skyer
高階會員


發表:43
回覆:111
積分:120
註冊:2002-04-04

發送簡訊給我
#7 引用回覆 回覆 發表時間:2002-11-08 18:36:28 IP:61.217.xxx.xxx 未訂閱
嚇! 拍謝~~ 耍了白痴.. 這裡是 BCB 版 ^^"" 安裝是先安裝 (compile) BCB5 or BCB6 目錄底下的 TntLibR.bpk 再安裝 (install) TntLibD.bpk 不過我沒灌過 .. 應該是可以的.. -- Regards, Skyer
------
--
Regards,
Skyer
I_Love_You
一般會員


發表:18
回覆:87
積分:21
註冊:2002-07-24

發送簡訊給我
#8 引用回覆 回覆 發表時間:2002-11-09 09:37:36 IP:211.96.xxx.xxx 未訂閱
非常感谢Skyer 大大的指点,但是我安装Design time package 的时候, 却“install”不了,结果该元件并没有出现在BCB5的IDE中的元件托盘上, 唉,这个元件的安装要比我以前安装的元件要麻烦很多,不知道哪位大大 用的是BCB5,同时也安装过这个元件的,指点一下小弟吧,谢谢!!!
jackkcg
站務副站長


發表:891
回覆:1050
積分:848
註冊:2002-03-23

發送簡訊給我
#9 引用回覆 回覆 發表時間:2002-12-10 19:09:18 IP:61.221.xxx.xxx 未訂閱
I_Love_You 大大    你至 http://delphi.icm.edu.pl/ Delphi 7.0x找一個appcontrols_trial.exe安裝包 底下是它的版權宣告 **********************************************************************    COPYRIGHT ========= The Advanced Application Controls (software) is Copyright (C) 1998-2002, by Utilmind Solutions(R) (Utilmind). All rights reserved. The authors - Utilmind Solutions(R) and Aleksey Kuznetsov (founder of UtilMind), exclusively own all copyrights to the Advanced Application Controls (AppControls) and all other products distributed by Utilmind Solutions(R).    LIABILITY DISCLAIMER ==================== THIS SOFTWARE IS DISTRIBUTED "AS IS" AND WITHOUT WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESSED OR IMPLIED. YOU USE IT AT YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THIS SOFTWARE.    RESTRICTIONS ============ You may not attempt to reverse compile, modify, translate or disassemble the software in whole or in part. You may not remove or modify any copyright notice or the method by which it may be invoked.    OPERATING LICENSE ================= a) Unregistered version You may distribute the unregistered version of software freely, provided that all files are included and remain unmodified and that no extra files have been added to the package. You may not ask any money for the distribution. You may use the unregistered version of Advanced Application Controls free of charge for testing purposes, but if you want to use it for other purposes than testing - you have to register it with the author.    b) Registered version (single user license) Once you have registered, you will receive a personal registered copy via email and/or login information to access your personal member area on AppControls.com. This copy may not be copied or lend. You have the non-exclusive right to use registered version of the software only by a single person, on a single computer at a time. You may physically transfer the software from one computer to another, provided that the software is used only by a single person, on a single computer at a time. In group projects where multiple persons will use the software, you must purchase an individual license for each member of the group or purchase site license. Use over a "local area network" (within the same locale) is permitted provided that the software is used only by a single person, on a single computer at a time. Use over a "wide area network" (outside the same locale) is strictly prohibited under any and all circumstances.    c) Registered version (site/team license) Once you have registered, you will receive a personal registered copy via email and/or login information to access your personal member area on AppControls.com. This copy may not be copied or lend. You have the non-exclusive right to use and transfer registered version of software on any number of computers by your company or your team only in one location (building complex). If you buy a site license, you may use the program in an unlimited number of your company's computers within this area.    d) Registered version (Educational site license) Once you have registered, you will receive a personal registered copy via email and login information to access your personal area at AppControls.com. This copy may not be copied or lend. You have the non-exclusive right to use and transfer registered version of software on any number of computers by your educational organisation (school/college/university etc) in one location (building complex). If you buy a educational site license, you may use the program in an unlimited number of your edicational organisation's computers within this area.    e) Registered version (World-wide license) Once you have registered, you will receive a personal registered copy via email and login information to access your personal area at AppControls.com. This copy may not be copied or lend. You have the non-exclusive right to use and transfer registered version of software on any number of computers by your company or your team world-wide. If your company has many branches even with thouthands of computers, world wide license covers them all.    *) Notes (clarification) "Single-user license" means "single-developer license". "Site license" means that it can be used by any number of software developers within your company. You can use purchased components in ANY number of your projects and deploy the "end-user" software to ANY number of your users/customers without any additional royalty fees. However you are not permitted to distribute the component itself (the source code or .dcu files of components).    BACK-UP AND TRANSFER ==================== You may make one copy of the software solely for "back-up" purposes, as prescribed by international copyright laws. You must reproduce and include the copyright notice on the back-up copy.    TERMS ===== This license is effective until terminated. You may terminate it by destroying the program, the documentation and copies thereof. This license will also terminate if you fail to comply with any terms or conditions of this agreement. You agree upon such termination to destroy all copies of the program and of the documentation, or return them to author.    OTHER RIGHTS AND RESTRICTIONS ============================= All other rights and restrictions not specifically granted in this license are reserved by authors.    __________________ January 18, 2001 Aleksey Kuznetsov UtilMind Solutions aleksey@utilmind.com **********************************************************************    不知道是否合用ㄛ    或再參考 【建議】Unicode  http://delphi.ktop.com.tw/topic.php?TOPIC_ID=21671    有的要摳摳ㄛ    ********************************************************************** 哈哈
------
**********************************************************
哈哈&兵燹
最會的2大絕招 這個不會與那個也不會 哈哈哈 粉好

Delphi K.Top的K.Top分兩個字解釋Top代表尖端的意思,希望本討論區能提供Delphi的尖端新知
K.表Knowlege 知識,就是本站的標語:Open our mind
wls
一般會員


發表:0
回覆:2
積分:0
註冊:2002-10-02

發送簡訊給我
#10 引用回覆 回覆 發表時間:2002-12-12 17:41:29 IP:211.75.xxx.xxx 未訂閱
我已經安裝好此 Package 了. 但現在我遇到一個難題? Tnt 元件的確能support Unicode 的輸入. 但是在 BCB 的開發環境卻不能輸入 Unicode ? 例如要輸入如下句子. TntMemo1->Lines->Add("下载软件设置"); 中間的簡體字都變成怪字 "¤U??¥ó?¸m " 請問有何解決方法嗎??? 謝謝
系統時間:2024-03-29 6:25:25
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!