/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/org/waxworlds/edam/importcontacts/VCFImporter.java

  • Committer: edam
  • Date: 2010-07-13 17:41:49 UTC
  • Revision ID: edam@waxworlds.org-20100713174149-pynofo872e5ug6d4
- added compatibility with 8BIT encoding

Show diffs side-by-side

added added

removed removed

461
461
                                        !charset.equals( "UTF-8" ) && !charset.equals( "UTF-16" ) )
462
462
                                throw new ParseException( R.string.error_vcf_charset );
463
463
                        if( ( encoding = checkParam( params, "ENCODING" ) ) != null &&
464
 
                                        !encoding.equals( "QUOTED-PRINTABLE" ) )
 
464
                                        !encoding.equals( "QUOTED-PRINTABLE" ) &&
 
465
                                        !encoding.equals( "8BIT" ) ) //&& !encoding.equals( "BASE64" ) )
465
466
                                throw new ParseException( R.string.error_vcf_encoding );
466
467
 
467
468
                        // do decoding?
468
469
                        if( encoding != null && encoding.equals( "QUOTED-PRINTABLE" ) )
469
470
                                return unencodeQuotedPrintable( value, charset );
 
471
//                      if( encoding != null && encoding.equals( "BASE64" ) )
 
472
//                              return unencodeBase64( value, charset );
470
473
 
471
474
                        // nothing to do!
472
475
                        return value;