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

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

  [复制链接]

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

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

admin 楼主

2014-4-4 13:23:35

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

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

x
Linux 验证Teamcenter字符集ISO8859-1方法
4 \6 N- q- Z" `; |3 u5 d) Y; U9 f" ^3 s

7 J& q& P' \  [* |$ L7 |: c$ yLinux系统,teamcenter安装工具需要ISO8859-1的字符集。
: T0 o0 O8 M5 c0 Q5 o4 ^8 B4 d为什么一定需要这个字符集呢?6 q; c3 w1 _2 @7 `) X+ S
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。1 ^" O) `3 _; w
通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
' J% U  t$ T) }export LC_ALL=en_US.ISO8859-1
( F  L6 _# o9 [) I  L2 Techo LC_ALL

5 L8 a: i0 i, |: n. p6 l  N' O5 h/ \4 [& T. B1 t" F3 U

& T/ s' \' w3 [& Y
上海点团信息科技有限公司,承接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中还是有乱码呢,处理这个文件时报错。7 i/ H- q) s/ P! ~! r* V3 P
Executing process templates) M! v) K7 O" h4 G6 }
Adding Template to Master File..., ~- t  r* a% K8 Z9 ]
Backing up the Consolidated Model File...
& K- p- W6 R0 }) T1 d  y7 W; k; @Backing up the Consolidated Model Localization File...
3 |1 M. N/ x0 iFinding Applicable Locales...* Q! v% C; B- T3 R9 F0 x
Finding Applicable Locales...
0 W0 |3 ?$ V/ pCreating the Consolidated Model File...
! J6 V* [6 Q2 K; k# |$ [" ACreating the Localization Consolidated Model File...
1 N* B& A$ d4 r- H; ?7 lLoading the Backup File...  q" l" L9 V6 e2 B. K# [5 g, i
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.
. I- l9 N+ z/ m' U% v' |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.
. Y7 L' V! t- |8 d$ ~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.$ k/ _" j9 z- A
Error! 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.' _* k5 G2 I- c
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., d2 V; F+ x( _) n
Error! 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.* f3 z2 g- y+ _4 t
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.
$ _' Y) n. Z7 H8 y8 A' B+ @" E6 x$ PError! 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.
! S  |% M( D/ J( Z* sError! 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.+ r: s) _" W4 B$ k! s
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.( S. Y! P- x2 o8 n  c$ y+ G0 Q5 J, T  M
Error! 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.
' N) z( ?. ]/ X% C# \$ \' tError! 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.* e+ ]; g% u% H! p: S
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.
9 J- y7 }4 K( GError! 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.
, _; w$ T3 T8 GPlease check the errors.- X, @8 w2 V! Y# y  l
Aborting...
& r& N( _1 j9 Z, L' |, t3 BError in Loading backup Model$ X/ \$ e; W* v; O5 B' ?- d, r
**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
1 _8 B& d3 _# F9 XRestoring the files from the database.& h' S! X5 L2 [1 G, G9 c0 k" n
Updating FileVersions.txt before restoring files
/ ]  ~4 u" `+ Z2 Tjava.lang.Exception
$ O- t3 d9 [) S7 a4 H! R  Q        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source). V# N4 \  a7 [4 R0 Z
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)2 J( T0 ~* q; D9 u4 w+ A9 O
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)) M* a  n1 j$ ^) g. C" a' X9 v3 m" x
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source). O- q2 s) _9 p2 a8 w7 K8 M6 I
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source). J$ O  I) k/ p1 v
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source), l8 D) y9 S  K. O9 J
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)2 U# O! q, r: T& r
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)$ y9 F6 k* \8 r! k
Process Templates failed9 a7 k: w* T- l
Script execution failed.
; h& h: O) D7 Z: p4 F2 M$ ZCommand end time: Thu Aug 01 05:19:00 PM 2019, m# w9 B+ `: G6 D
Command duration: 2 minutes 20.278 seconds
5 H# L1 v/ M3 eERROR: Execution of command 1 failed with error code 1' o7 [4 E" D9 @5 J, q9 b- y
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了