Changeset 10862 in josm for trunk/src/com/drew/metadata/iptc/Iso2022Converter.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/iptc/Iso2022Converter.java
r8132 r10862 1 /* 2 * Copyright 2002-2016 Drew Noakes 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 * More information about this project is available at: 17 * 18 * https://drewnoakes.com/code/exif/ 19 * https://github.com/drewnoakes/metadata-extractor 20 */ 1 21 package com.drew.metadata.iptc; 2 22 … … 40 60 /** 41 61 * Attempts to guess the encoding of a string provided as a byte array. 42 * <p />62 * <p> 43 63 * Encodings trialled are, in order: 44 64 * <ul> … … 47 67 * <li>ISO-8859-1</li> 48 68 * </ul> 49 * <p />69 * <p> 50 70 * Its only purpose is to guess the encoding if and only if iptc tag coded character set is not set. If the 51 71 * encoding is not UTF-8, the tag should be set. Otherwise it is bad practice. This method tries to 52 72 * workaround this issue since some metadata manipulating tools do not prevent such bad practice. 53 * <p />73 * <p> 54 74 * About the reliability of this method: The check if some bytes are UTF-8 or not has a very high reliability. 55 75 * The two other checks are less reliable.
Note:
See TracChangeset
for help on using the changeset viewer.