查看: 6207|回复: 2

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

 火 [复制链接]

2477

主题

1280

回帖

8万

积分

管理员

PLM之家站长

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

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

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

×
Linux 验证Teamcenter字符集ISO8859-1方法
  E" {6 C6 ^$ C3 H) N8 U1 u* o6 ?' m! u

1 o, t# ~% e# ^8 F- f* MLinux系统,teamcenter安装工具需要ISO8859-1的字符集。
) w7 f; M( c- `9 O/ X3 g为什么一定需要这个字符集呢?, `& _8 E+ J& W7 v1 w
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。
8 S1 L% h8 x% J) s' G* Q通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
: O1 u- h0 s8 g' E3 ?# Iexport LC_ALL=en_US.ISO8859-17 U( T8 U1 [0 @" w/ i7 u
echo LC_ALL

% T% y8 I: X# t0 Y
9 R! X, D" r& h
; d8 _! _! j( ?6 I
上海点团信息科技有限公司,承接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中还是有乱码呢,处理这个文件时报错。% s, W. d' H: X, x0 {
Executing process templates
4 t! h& i, `0 c2 iAdding Template to Master File...
0 r$ Y0 V- X4 u" j% `Backing up the Consolidated Model File...
2 p7 E# d$ f/ B9 v3 \$ PBacking up the Consolidated Model Localization File...
$ |  G' H1 t# F8 b1 y' u$ oFinding Applicable Locales...: T( K9 H1 I: ?8 f/ Q7 ~
Finding Applicable Locales...' E% J# i# y( d6 ~: I8 \
Creating the Consolidated Model File..., h! g' s" A1 f4 `* |6 G* a
Creating the Localization Consolidated Model File...
" b' ?" ^. U! g! zLoading the Backup File..." z6 q, M9 V8 J. J9 w  p% y# M- A
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.
0 O' A; v5 e( W* F1 c4 rError! 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.
; ^6 V8 ]7 }+ qError! 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.' P- e( k# J* w% C
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.8 x2 C; e' O9 g! v7 l1 ~$ y
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.$ r% ^# k9 w. z& t2 t& m. N( T
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.& I& u" N1 J9 N, g
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.6 b8 \3 H$ x- Y/ x) y" m  v- C# t
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.
5 G# D* z  \5 IError! 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.9 ~; d3 ]3 ?/ @" q- o
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./ @! H9 h1 b5 \3 t; _* p% Y  h9 Y
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.6 w3 n6 \$ q+ @6 K9 x3 H4 }- t' M: k$ E
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.
" I2 p8 i9 `( P" 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.
# x3 n% }' t1 B: w' t  [/ _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.7 F' X  u  X0 `4 U/ c8 f. S
Please check the errors.
9 A9 M: h$ }! f, U6 ZAborting...9 W' d+ Y( m3 q& _5 r
Error in Loading backup Model$ I) z) q, p- L" O& N+ h
**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) r  X7 f4 ~- O) Z- n/ h5 q& @4 P  U% D
Restoring the files from the database.( i$ B7 O( f( x" q
Updating FileVersions.txt before restoring files
- h5 a  I5 |* ejava.lang.Exception
* C0 U8 M* ?/ r; X. B' i        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)
6 a3 m/ P/ h5 f, c$ c4 x: s        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)
6 r" {& N+ `& ]3 ~. ?& K        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)
* M1 V' o4 q: U1 P        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)5 P; [, }. h' p
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)
9 A9 f+ q0 T; k0 X2 ^2 M/ I        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)' K) P; ~! e4 k* q7 [* B+ b
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)
7 n- S5 F: {$ X) k0 V: K- V        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)
' j+ a4 B/ Q& T5 S0 v1 S( O$ kProcess Templates failed
9 M* S1 p8 p' X  h2 B* q' U0 [Script execution failed.* m7 _) |; w5 d6 y
Command end time: Thu Aug 01 05:19:00 PM 2019
* @0 }) q. b: y) cCommand duration: 2 minutes 20.278 seconds$ ?% N% z2 I" J9 m2 a6 U# s7 |
ERROR: Execution of command 1 failed with error code 1
  p- K) N% h! t4 `
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

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