Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

File could not be read with the encoding specified?

Tried to check in some text files, but got following message, why?


The file(s) to be checked-in could not be read with the encoding specified.

Select the files to be treated as binary. If you decide later it is not binary, you can change the line delimiter property of the file.

0 votes



4 answers

Permanent link
The "encoding" on a file determines how you map the series of bits in the file into logical characters in the character set. For some encodings, there is no mapping for a particular series of bits, and apparently RTC has encountered such a series of bits. This usual means that the encoding that is declared for the file does not match the encoding that was actually used to write the file.

The error message advice to declare the file as "binary" will fix this problem by telling RTC not to try to decode the bits ... just read them in directly as binary bits.

Cheers,
Geoff

Tried to check in some text files, but got following message, why?


The file(s) to be checked-in could not be read with the encoding specified.

Select the files to be treated as binary. If you decide later it is not binary, you can change the line delimiter property of the file.

0 votes


Permanent link
Declare a text file as "binary"? Will we then lose some functionality? Something like merge for line?

The error message advice to declare the file as "binary" will fix this problem by telling RTC not to try to decode the bits ... just read them in directly as binary bits.

0 votes


Permanent link
Declare a text file as "binary"? Will we then lose some functionality? Something like merge for line?

Makson,

Which encoding is set for the file failed to check-in? Big5 or UTF-8?
I believe at least one byte violate the encoding rule in this file.

0 votes


Permanent link
Joseph,

The file is encoded as Western European (Windows), and maybe you could let me know how to find bits which violate the encoding.

Which encoding is set for the file failed to check-in? Big5 or UTF-8?
I believe at least one byte violate the encoding rule in this file.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 11 '12, 9:14 a.m.

Question was seen: 4,938 times

Last updated: May 11 '12, 9:14 a.m.

Confirmation Cancel Confirm