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

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

  [复制链接]

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

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

admin 楼主

2014-4-4 13:23:35

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

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

x
Linux 验证Teamcenter字符集ISO8859-1方法! |9 s, N$ `- t4 `/ y

' @; k; a1 |2 H
& A  x* P- _$ ]4 M4 ~
Linux系统,teamcenter安装工具需要ISO8859-1的字符集。
$ n- _: p- w) T为什么一定需要这个字符集呢?
2 ^: o1 k8 I+ C, h2 i; g5 d主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。  v" k, T. h2 J1 ?: I8 [1 K0 x, U1 h
通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:& S) b+ a, |, J# U7 d
export LC_ALL=en_US.ISO8859-12 C( O! b; H+ S% Z4 d. p9 W( O6 ^
echo LC_ALL

0 A8 x9 T( }3 X; x8 L; T  U1 ~* L* H% g" b
* p1 S' J% i* Z3 N6 P
上海点团信息科技有限公司,承接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中还是有乱码呢,处理这个文件时报错。( \6 @0 K8 g6 T1 g
Executing process templates3 Z$ Y" Z4 `# e/ O3 j" g
Adding Template to Master File...2 \& o: ]  G% C8 ~; }9 S8 j
Backing up the Consolidated Model File...
5 I& O5 g; q! P3 w% e* cBacking up the Consolidated Model Localization File...
% a6 |6 x- |/ ]1 Z0 R* e+ MFinding Applicable Locales...
2 {0 k9 x& ?) K. x; W% HFinding Applicable Locales...
3 [8 p, w. l4 W' P2 x) X, `Creating the Consolidated Model File...
! B% z) h) `, ~2 s0 p8 U' cCreating the Localization Consolidated Model File...; x* ^* j: c# Y! D
Loading the Backup File...
& t7 {7 a$ L' D& m" f7 \***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.
! d+ b/ c+ u2 {" e! cError! 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.
3 u2 j3 v) i0 `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.6 o7 @2 }* b' P1 _2 D; B2 z, b
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.
2 W" B: ~# }% b9 I! q/ AError! 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.$ U  y! `1 n+ H% }* O7 v
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.# N4 I, H  r. J$ x3 E' A! W
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." H/ G9 C1 f# }5 N; V6 I  P! G$ r
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.: Z( S3 K) q  [2 m; W) A' g# u
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 D" G/ u# A2 C4 W. kError! 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.
& x+ t* e& _' s7 A+ l, dError! 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.. J" j( O5 ~3 ?% A0 G* l# @$ l
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.$ ?9 g1 Y5 |0 P0 j, a7 C2 J- o
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 i4 a# n2 N3 H! g2 f. i3 ]Error! 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.) G; F  q4 y( }* G8 S: B
Please check the errors.4 j4 L0 y" |- m% a
Aborting...4 F- u0 y" ^' s& x3 p8 T  A
Error in Loading backup Model
  W! Q: s! ]8 L2 A, |**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* J0 R6 ~. V1 Y0 e, A' C
Restoring the files from the database.; |) V" o, Z# g' m+ v5 P
Updating FileVersions.txt before restoring files6 C* u0 t" l8 K+ O8 i3 x8 p
java.lang.Exception- a7 w  D: \9 P0 Z3 t2 t2 b
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)
2 I! K9 Z' E$ M* W8 U6 E! V3 c! x        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)
; |7 w9 K* s$ x! \, Y0 j) |' F0 c        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source); d' ~5 d+ M8 P9 B9 L7 d
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)
& c) r+ E8 f1 v9 g        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)
8 N  r/ f2 A8 D, N4 N! ]/ B. I- U        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
( n1 ~+ }. g" @* _& a        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)! R( r; U9 u( r8 G! b3 ?5 k% u+ M2 Z
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)7 P1 L1 F0 i; z9 m' z4 t  f* A
Process Templates failed# O" E2 N! I1 h& x- G9 ]
Script execution failed.' h, d% O' C! V( S$ B
Command end time: Thu Aug 01 05:19:00 PM 20194 @: K! E: U2 z# O6 d
Command duration: 2 minutes 20.278 seconds
. F! x2 G& D5 aERROR: Execution of command 1 failed with error code 1
; L# s9 d, {0 [/ x
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了