P6 xer format , text encoding issue
Multi platform library to read and write schedule data
Brought to you by:
joniles
If I export my p6 file to .xer . When I use MPXJ to read the file , I got garbled text in c#.(It's Chinese text originally),but if i export p6 file to XML format, i can get the right Chinese text using MPXJ in c#.
Attachment is the file with chinese task name.
Hi,
I'm guessing that this XER file was produced by a Chinese version of P6? I've tried to load it into several different English versions of Primavera, but in all cases the activity names are rendered incorrectly.
Looking at the XER file itself there does not appear to be any indication of the charater encoding used when it was written and, unless I've missed a setting somewhere in P6, my guess is that you'd need to use a Chinese language version of P6 in order to read the file correctly.
Assuming my notes above are correct, there isn't an easy way for MPXJ to automatically select the correct character encoding, so instead I have provided an additional method on the PrimaveraXERFileReader class which will allow the caller to provide an encoding name before the file is read... so as long as you have an idea of what the correct encoding should be, you should be able to read the file correctly.
I tried this with your sample file using "Big5" as the encoding, which seemed to produce sensible results. Let me know how you get on!
Jon
Yes,you are right. I use the Chinese version of V6 to create the test file. My client may use other encodings(GB,US) as well , hmm maybe I need user to choose encoding when he upload.(or I have to find some way to detect xer encoding @@ ) thanks for your great help.
Is there any schedule for this new release ?
Best regards,