 alloc] initWithData:self.ItemData encoding:enc] autorelease];
            utf8str = [utf8str stringByReplacingOccurrencesOfString:@"\"GB2312\"" withString:@"\"utf-8\"" options:NSCaseInsensitiveSearch range:NSMakeRange(0,40)];
            NSData *newData = [utf8str dataUsingEncoding:NSUTF8StringEncoding];
            self.ItemData = newData;   
        }
}
</code></pre>
</div>
<hr />
<p>GB2312或GBK编码的网页，要先用gb编码解码，然后替换其中的gb字符串，再用utf8编码成data给parse