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

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

  [复制链接]

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

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

admin 楼主

2014-4-4 13:23:35

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

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

x
Linux 验证Teamcenter字符集ISO8859-1方法, @8 V! c# a$ k" C, i
: x. I7 P. ^: X& `
: U: @; t2 n. R! U# A  Z% z
Linux系统,teamcenter安装工具需要ISO8859-1的字符集。7 d2 h/ ~9 u* g
为什么一定需要这个字符集呢?8 s* d/ d+ g4 |" Y/ \/ ^
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。' M5 S2 s7 R4 l2 q6 C. |
通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:* Q. P3 Z4 w' _- D: L& U
export LC_ALL=en_US.ISO8859-1( `6 O, d! G8 r8 f' t1 i: M) u9 ^
echo LC_ALL

5 H6 h- G, O% w9 f$ M  m* E: s6 ^( a$ u* }7 q9 N  C1 }
2 V* {  c6 v1 j# o& D5 v; x# J
上海点团信息科技有限公司,承接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中还是有乱码呢,处理这个文件时报错。
2 e# b3 s, m+ c3 ^  i. [Executing process templates! P4 B7 Z7 ^+ N9 j% t& C. h
Adding Template to Master File...6 }7 ?" n  Z: ?/ z6 H6 k
Backing up the Consolidated Model File..., k1 s& O8 i, r$ Q7 Z4 t
Backing up the Consolidated Model Localization File...- F3 b7 A$ T+ g
Finding Applicable Locales...2 t+ x2 j* t( _* i/ s
Finding Applicable Locales...2 S: j; k2 c% t
Creating the Consolidated Model File...
: B4 c! m5 }6 Z, xCreating the Localization Consolidated Model File...
3 |3 |3 D" c1 ^' ]# i6 ^+ BLoading the Backup File...0 r  {/ o. u! l& U7 b5 R0 {
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.2 S* t9 W6 @+ p3 u6 t
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.
& X+ x. N7 d1 I/ ?/ gError! 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.8 A' ^2 t( q, @$ i5 h
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.
/ ?0 x  R7 Z. [  Q- N. L! x8 tError! 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.9 S; A$ v& ^. ^4 E  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.2 s' N+ m; ]: t" Z
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.& x2 ]: l0 _# ]$ q. _
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.$ S+ k$ j  A' P# P. c. t9 C
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.
! X5 B1 m# g: ]0 LError! 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.
" I# `' b. u5 N' k9 mError! 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.' B6 f9 K# _# [7 Y( K
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.- d9 B7 Z0 z" m2 \) V
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.. l7 x" W' {( I9 `& B* e
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.3 ~3 b* t% F5 ]! b1 j* u- S$ X
Please check the errors.5 g# T4 ~' o; l! \# Y2 `- y
Aborting...# I# D, m% t4 k8 }, G
Error in Loading backup Model0 W9 Y2 t3 B! {- O$ V1 Z! x
**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
# _: L" H0 z1 z0 R$ lRestoring the files from the database.
; e8 n1 }( R" IUpdating FileVersions.txt before restoring files
* R) C; X, T' Q- mjava.lang.Exception
6 j5 Q3 y2 S6 A% R/ |' a* u        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)6 D. x6 w; X2 k# j
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)
2 i, _. {# ~3 R$ t4 V9 V- P' a        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source), |$ Q0 V1 e" o; J9 v
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)5 H5 o$ Z/ y0 G- M9 W9 M1 P6 r
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)8 o& Y& W# g4 ^; W2 J& e
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
4 ^1 D2 }9 B% z. O. I" {        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)" Q- e+ }  k( ?1 P, W$ F, s
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)
4 N% b& Y- r2 H% {% t) rProcess Templates failed
1 D2 `8 E, s$ Q/ Z- X7 ]3 {7 a) zScript execution failed.3 F% A5 J4 R5 e# E
Command end time: Thu Aug 01 05:19:00 PM 20195 R2 l; P! Z6 @& O7 K9 ?/ c
Command duration: 2 minutes 20.278 seconds
6 f# t9 }( T1 @0 e) ZERROR: Execution of command 1 failed with error code 1
" Y( [$ C. m5 ?$ {1 ^( f! C
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了