decoding quoted-printables

前端 未结 6 1374
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 16:40

I am looking for a way to decode quoted-printables.

The quoted-printables are for arabic characters and look like this:

=D8=B3=D8=B9=D8=A7=D8=

6条回答
  •  醉梦人生
    2020-12-20 17:20

    In some cases the line ends are not "=\r\n" but are only "=\n", in which case you need another step: decodedString = [self stringByReplacingOccurrencesOfString:@"=\n" withString:@""];

    Otherwise, the final step fails due to the unbalanced "%" at the end of a line.

提交回复
热议问题