On 28 May 2012 14:23, guotao wang <
wqq...@gmail.com> wrote:
> ASCIIToUTF16(std::string((const char *)m_lpdata,dwSize)) is right?
>
> it cause debugbreak , "DCHECK(IsStringASCII(ascii)) << ascii;"
Then your input string isn't ASCII (i.e. it contains some bytes >127).
> On 5月28日, 下午8时59分, Hao Zheng <
zheng...@google.com> wrote:
>> Then use ASCIIToUTF16().
>>
>> Regards,
>> Hao Zheng
>>
>>
>>
>>
>>
>>
>>
>> On Mon, May 28, 2012 at 8:38 PM, guotao wang <
wqqg...@gmail.com> wrote:
>> > my data is ASCII, UTF8ToUTF16 function maybe used
>> > reinterpret_cast<char const*>
>>
>> > On 5月28日, 下午6时48分, Primiano Tucci <
primi...@chromium.org> wrote:
>> > > On Mon, May 28, 2012 at 11:25 AM, guotao wang <
wqqg...@gmail.com> wrote:
>> > > > Because of many reasons, i need to convert BYTE* to string16, how to
>> > > > do
>>
>> > > I guess a good candidate could be:
>> > > UTF8ToUTF16(const char* src, size_t src_len, string16* output);
>>
>> > > defined in base/utf_string_conversions.h.
>>
>> > > Cheers,
>> > > Primiano
>>
>> > --
>> > Chromium Developers mailing list:
chromium-...@chromium.org
>> > View archives, change email options, or unsubscribe:
>> >
http://groups.google.com/a/chromium.org/group/chromium-dev
>
> --