PLM之家PLMHome-国产软件践行者

[升级] Linux 验证teamcenter字符集ISO8859-1方法

  [复制链接]

2019-8-2 07:49:27 5589 2

admin 发表于 2014-4-4 13:23:35 |阅读模式

admin 楼主

2014-4-4 13:23:35

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux 验证Teamcenter字符集ISO8859-1方法& X# F: s/ V3 v$ L- e. ?' |4 t6 r% W* `
! e/ ~+ I; d+ _4 v6 s5 H( E
5 J3 n/ [( ]/ B; h( d) q6 d: X# z
Linux系统,teamcenter安装工具需要ISO8859-1的字符集。
  ?  o1 `1 s' Z0 z8 Z5 e为什么一定需要这个字符集呢?
/ v0 c3 g' e* F, T主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。
- _  ^6 y, a9 f. ?  k0 P5 ?% Z0 n通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
( W# Y8 N/ r. k" Cexport LC_ALL=en_US.ISO8859-1
6 G3 I, Z6 W0 Hecho LC_ALL
) L( t  X/ n( D2 r% x3 C
* q. M' o8 C* V8 K$ I) H
+ z& H9 Y- W+ G1 U! s7 m& k) g
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

全部回复2

superOcean 发表于 2014-9-27 16:47:11

superOcean 沙发

2014-9-27 16:47:11

为什么有人windows平台下TC10不能用utf-8
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

miter 发表于 2019-8-2 07:49:27

miter 板凳

2019-8-2 07:49:27

修改了,但model_backup.xml中还是有乱码呢,处理这个文件时报错。3 q% f4 w5 |, u
Executing process templates! O% M7 o3 G/ ^* W0 `/ p
Adding Template to Master File...: G% O6 [9 L. z) \$ ?1 N5 \. n
Backing up the Consolidated Model File..., M# y, ?, ?+ f3 `/ M8 [4 l
Backing up the Consolidated Model Localization File...& I1 D. S" P7 S, L5 A6 K4 O9 X
Finding Applicable Locales...
& A9 `9 C$ b% q* z, m# CFinding Applicable Locales...
& a" w8 H: E$ D$ d; sCreating the Consolidated Model File...
4 V* a4 [) i( Y0 N% ?1 GCreating the Localization Consolidated Model File...
2 a% z" A7 p1 X5 _; pLoading the Backup File...1 w+ e7 {9 t* @! S
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.2 O6 v. N* v. d; z! q
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19565 Column:206 The text "ÔÚ¹ØÁªÖд´½¨ - ÒÑÆúÓᣲμûÖ§³ÖÎĵµÖÐÓй..." cannot exceed "128" bytes. Your text is 142 bytes too long./ b" J4 r4 @% }# R& A. o
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19569 Column:215 The text "ÔÚ¹ØÁªÖÐÌí¼ÓµÄ¸¸¼þ - ÒÑÆúÓᣲμûÖ§³ÖÎĵ..." cannot exceed "128" bytes. Your text is 154 bytes too long.
) F9 T- h5 K3 ZError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19617 Column:217 The text "ÔÚ¹ØÁªÖÐÒÆ³ýµÄ¸¸¼þ - ÒÑÆúÓᣲμûÖ§³ÖÎĵ..." cannot exceed "128" bytes. Your text is 154 bytes too long.9 P! w! H) k3 y. s  G( V* p
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:21805 Column:207 The text "ÓÃÓÚ´´½¨µÄ±à¼­¹ØÁª¡£²Î¼ûÖ§³ÖÎĵµÖÐÓÐ¹Ø F..." cannot exceed "128" bytes. Your text is 152 bytes too long.
, b5 F; h) I+ L4 I7 `- N6 q; WError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:21857 Column:197 The text "µ±Ç°±à¼­¹ØÁª - ÒÑÆúÓᣲμûÖ§³ÖÎĵµÖÐÓй..." cannot exceed "128" bytes. Your text is 142 bytes too long.% v! T  [! k2 Q) b8 y) [
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:28007 Column:177 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏì¸ù½ÚµãÁÐ±í¡£ÒÑÆúÓÃ..." cannot exceed "128" bytes. Your text is 132 bytes too long.
- K3 u- D! V, h" SError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:337 Column:170 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏìÔöÁ¿¸ü¸ÄµÄ¸ù½Úµã¡£..." cannot exceed "128" bytes. Your text is 144 bytes too long.$ C! @$ M/ ], f% X! Y
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:421 Column:172 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½ÚµãÓÐЧÐÔ°ü£©¡£ÒÑ..." cannot exceed "128" bytes. Your text is 140 bytes too long.$ `7 o' t5 e5 A2 h) A" u: o! r# N1 Y/ g* O
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:705 Column:166 The text "Íâ¹Û°æ±¾¹ØÏµ¶ÔÏóÍâ¹ÛÀúÊ·¼Ç¼ÌõÄ¿¡£ÒÑÆúÓÃ..." cannot exceed "128" bytes. Your text is 132 bytes too long.
0 ^( y# Q5 ^+ K' J5 {2 GError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:1763 Column:175 The text "Íâ¹Û°æ±¾¹ØÏµ¶ÔÏóÈÕÆÚÓÐЧÐÔÀúÊ·¼Ç¼ÌõÄ¿¡£..." cannot exceed "128" bytes. Your text is 144 bytes too long.
0 e$ m6 M/ f  |: F/ O( u. v* u5 m+ }Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:3819 Column:170 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½Úµã°æ±¾°ü£©¡£ÒÑÆú..." cannot exceed "128" bytes. Your text is 136 bytes too long.* X2 w/ f. k7 O% J( N. J% ?
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:4271 Column:172 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏìÒѸü¸Ä°æ±¾µÄ¸ù½Úµã..." cannot exceed "128" bytes. Your text is 148 bytes too long.
, @8 ^- @1 U$ g+ o: J! MError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:4882 Column:174 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½Úµã¹¤×÷°ü£©¡£ÒÑÆú..." cannot exceed "128" bytes. Your text is 136 bytes too long.
( o+ D, Y. s5 b* ~Please check the errors.
# }: ]  a. s3 Z2 Z5 v# O% d: OAborting...
0 `" w4 X0 C: y& m% s/ d6 m6 m; B( xError in Loading backup Model
4 K- p/ m0 U" J: }' h, ]  h**The backup of all files used for delta generation is available in /usr/Siemens/Teamcenter11/logs/1908011712/compare_history/install/model_compare_2019_08_01_17-18-59.zip# u* k7 ^5 F- K0 c. I2 `  A( c
Restoring the files from the database.- L  W2 \  O+ m8 u* t1 N0 b/ B
Updating FileVersions.txt before restoring files. F2 `0 j& p# W' {5 s2 m* K. t
java.lang.Exception
+ N( V+ ~. M7 U6 ]( n4 }        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)) J; e. e( c& u% h) u, r  N* V
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source); c* h0 f' h5 I  E
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)9 O7 Y0 w; J4 q9 ^9 J4 b- r
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)- G( a4 ~! f/ @5 a; P2 k  c+ S9 a1 n
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)
: j& i' D, @; d        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)1 B( `5 k2 W  Q: x6 K4 }' |. F( h
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)
# v6 e) N9 C4 P# D        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)
" M8 b& T6 a/ ]Process Templates failed& X. G# \* `; p- i2 ?
Script execution failed.  e  i" W% ]# j4 Q
Command end time: Thu Aug 01 05:19:00 PM 2019
7 s' d; Z- l$ bCommand duration: 2 minutes 20.278 seconds
. N7 S6 F2 T2 w1 _* wERROR: Execution of command 1 failed with error code 10 V% }& \7 U0 L; d( @* p
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了