查看: 6193|回复: 2

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

 火 [复制链接]

2477

主题

1280

回帖

8万

积分

管理员

PLM之家站长

积分
82265
QQ
发表于 2014-4-4 13:23:35 | 显示全部楼层 |阅读模式

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

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

×
Linux 验证Teamcenter字符集ISO8859-1方法/ C6 z+ r3 j; Z" K
' D# q& l# r; n, l8 m6 z

; V, y, O# |. G8 f" tLinux系统,teamcenter安装工具需要ISO8859-1的字符集。
0 e  b; N8 Y& s: c2 Z4 P( X为什么一定需要这个字符集呢?+ s, t1 X! O" H" b; k3 M$ U
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。
+ L: h3 g0 W# I! Z) G) o6 W通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
6 |: W( X1 f, k% T" b/ iexport LC_ALL=en_US.ISO8859-1( D) {- p. N5 @; E! _; l
echo LC_ALL

) Y9 R- O3 y+ `; O# k0 R: J) R, Z1 ?9 i( n. n# O) s

5 N/ b5 a9 s- y2 V. Z
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

2

主题

66

回帖

569

积分

高级会员

积分
569
发表于 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.doteam.tech
回复 支持 反对

使用道具 举报

0

主题

29

回帖

92

积分

注册会员

积分
92
发表于 2019-8-2 07:49:27 | 显示全部楼层
修改了,但model_backup.xml中还是有乱码呢,处理这个文件时报错。
$ J7 ], [) }( _/ |" B" |& N& GExecuting process templates6 o; j. A1 r! C2 w  E
Adding Template to Master File...
, t: K# U" X8 W! eBacking up the Consolidated Model File...: {) x! x" P4 W9 ?9 w6 D, y/ V
Backing up the Consolidated Model Localization File..., q" w. X( ]4 {4 }+ h6 z
Finding Applicable Locales...
  O( S1 S/ ?+ j( nFinding Applicable Locales...- C1 W4 N% p$ A5 T4 E
Creating the Consolidated Model File...
, H5 ~( v5 K$ @/ v) E0 W$ fCreating the Localization Consolidated Model File...
2 v/ k2 x% ~" T( Z. MLoading the Backup File...# S, w3 r" [* ]" B$ G' R' m
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.4 |1 z: h! V( ~. ?, k) b- R
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.
" n' a' S9 _' A: [0 R6 ^( sError! 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.1 P/ J- Q0 u' M# g5 {! {
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." v: y$ O# j( i
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.
! _/ i, k: x- F' F  U  x4 l3 uError! 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.
: n5 L& b: T0 u+ BError! 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' w, e# }" w% H% `. p* u$ |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.- p- C+ W1 C6 e% s6 E- a2 J: f9 X
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.+ d" h+ l4 Q7 l0 J, D5 ^
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.
; k# C/ [) p+ k7 G1 O& UError! 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.
' W; B6 ^6 _1 S% V% F! MError! 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.- I1 u$ E, ^- R
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." x3 Z2 [( _3 }" 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.
" z; Q$ q: b: L/ d. _9 ^Please check the errors.
) r2 o' Q" i( N: G" l, e0 DAborting...
6 e9 u! p2 a' T. K) ^, CError in Loading backup Model
: f/ D) P1 l9 N4 b' m**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+ K0 X3 l2 i0 T# f5 `
Restoring the files from the database.
) C3 y" t' x# z& ?$ z  \# S9 RUpdating FileVersions.txt before restoring files
) a+ f) ^; F7 ~) R# @java.lang.Exception: N" u2 {& _) ?1 ^% W4 n7 a+ c
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)# ?4 z8 C( e: S" Z7 [
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)! T' F( J6 k8 c/ R$ D8 ~3 Z1 i
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)  d8 N6 P  z6 H! @: n% Z$ I/ X
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)' b. z4 b/ Z- Z: T
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)5 M7 V7 x* R" O& C! y- j, Z
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
0 [( O7 {7 }5 z- x        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)
$ h$ K- h, u! n, r8 L! @- N        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)3 T, M; Y$ d. o& T
Process Templates failed
# }% I% B% o% N. W) NScript execution failed.* L: m( Z( N3 q( }  J5 H
Command end time: Thu Aug 01 05:19:00 PM 2019" S; u- {  q9 a$ i. s7 s
Command duration: 2 minutes 20.278 seconds
' C: l$ M4 k4 q/ U; t* D& iERROR: Execution of command 1 failed with error code 1
: F2 S2 T. t' p& ]- ^
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部