Browse Source

Change CodePagesEncodingProvider to Encoding

pull/2320/head
Stefan Nikolei 3 years ago
parent
commit
4949c348fa
  1. 3
      src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs

3
src/ImageSharp/Metadata/Profiles/Exif/ExifEncodedStringHelpers.cs

@ -26,8 +26,7 @@ internal static class ExifEncodedStringHelpers
// 20932 EUC-JP Japanese (JIS 0208-1990 and 0212-1990)
// https://docs.microsoft.com/en-us/dotnet/api/system.text.encoding?view=net-6.0
private static Encoding JIS0208Encoding => CodePagesEncodingProvider.Instance.GetEncoding(20932) ??
throw new InvalidOperationException();
private static Encoding JIS0208Encoding => Encoding.GetEncoding(20932);
public static bool IsEncodedString(ExifTagValue tag) => tag switch
{

Loading…
Cancel
Save