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

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

  [复制链接]

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

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

admin 楼主

2014-4-4 13:23:35

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

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

x
Linux 验证Teamcenter字符集ISO8859-1方法
7 O4 @; g( ]6 s" \, p+ f0 S& E# d
" q7 t" A/ k" u; H$ q/ Z

3 N1 ^3 `( v- r- S) mLinux系统,teamcenter安装工具需要ISO8859-1的字符集。
8 v. L( }4 L8 Y5 |9 G. `% \! ~+ O为什么一定需要这个字符集呢?+ @$ L* d4 b7 _
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。+ K+ x+ t# j* @& B
通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
6 F7 V7 s4 k# W: O( Bexport LC_ALL=en_US.ISO8859-1
: z0 n' B! Q/ x# i  V1 }$ decho LC_ALL

$ N' G+ m" i+ b. W
( [& M" E' h4 R7 _  B6 N/ c5 H7 H- ~
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ 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中还是有乱码呢,处理这个文件时报错。& [8 D1 y7 W, @0 C  B# c, J; e
Executing process templates+ e1 C, B  H* x. [4 ^* }
Adding Template to Master File...3 ]. D+ q  c- F; ^! h
Backing up the Consolidated Model File...& o6 @- m: z; Q0 {9 v7 O# S, h
Backing up the Consolidated Model Localization File...
( U1 N* g3 Y3 Z* i' fFinding Applicable Locales...
2 U6 e5 T' @. P6 d, Q1 OFinding Applicable Locales...
& @5 z6 c/ Z7 k9 j3 Z& r# K9 uCreating the Consolidated Model File...
% w( \1 ?; X/ @  ?Creating the Localization Consolidated Model File...4 m( E1 ~4 s8 @" a5 M/ a
Loading the Backup File...8 b& T* _: Y' K- j# t7 |
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.
; C8 j: k- V4 M3 zError! 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.& O5 B: h* w# i4 ?% F1 y9 V
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.) M  }7 l5 p4 b! h6 i4 |
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.
( G/ Q4 ~1 k1 R% J2 N; ]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.
: |* E3 T4 j" k; d6 U) kError! 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.0 o1 k3 x/ t' I! U
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.1 @- M- k8 V% q+ _4 v. s9 y4 }
Error! 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.
1 g4 d/ h  Z: \4 T3 N- N  W0 LError! 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.1 Y8 {$ m0 `! u3 b5 q
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.2 j) {; R3 \8 F% g( j% e- K
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.
$ e* |8 v4 l! G2 E, l& M$ N/ s$ S9 AError! 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.
2 d5 Z$ O9 \, r3 k) z  VError! 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.
; V9 {! M* w$ ]2 j- Y) }: OError! 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.# ^" g1 T& D1 U( @2 s' Z- T
Please check the errors.- P$ E6 ]3 b2 x! S& m$ B" Q
Aborting...
1 ]& @# e  J( J9 z: H% nError in Loading backup Model5 p& h' Z6 a6 R; ]: F  t, j; D* o
**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# O4 R: Z) F$ ]; X% Q
Restoring the files from the database.
1 X! c5 E) H: f. A1 p& PUpdating FileVersions.txt before restoring files
9 U* f: Q% [# @2 F5 u: H" w2 \java.lang.Exception0 B& I% a8 w1 |% G( C
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)
3 e1 e5 M% X8 W2 K9 h        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)1 _! r3 }" U) B2 Q. ]$ O
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)
+ j3 ?1 q2 v7 c0 J; @$ W, r        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)
- k& u$ T# Y  `4 S8 a        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)2 R+ x7 w% t% T- Y
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
( c0 e. K8 y4 F$ K0 g& c" q1 B8 |        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)8 V& N4 A3 N/ _4 r' m
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)
% l% [0 s- E  g: p9 `' tProcess Templates failed$ H: n+ K6 Z$ s5 o
Script execution failed./ ?" v  W7 z/ e$ o  `
Command end time: Thu Aug 01 05:19:00 PM 2019
! [: c; d- y' l8 K# K+ I! YCommand duration: 2 minutes 20.278 seconds0 C( s: D. R- H& z3 T8 U
ERROR: Execution of command 1 failed with error code 1
& `8 u4 C: l0 ^/ w4 K( I0 E
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了