[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1053932 - /subversion/trunk/subversion/bindings/javahl/tests/org/apache/subversion/javahl/BasicTests.java

From: Blair Zajac <blair_at_orcaware.com>
Date: Thu, 30 Dec 2010 12:37:10 -0800

On 12/30/10 11:54 AM, Mark Phippard wrote:
> On Thu, Dec 30, 2010 at 2:24 PM, Blair Zajac<blair_at_orcaware.com> wrote:
>>> - client.propertyCreate(itemPath, "cqcq", "qrz", Depth.empty, null,
>>> + String alphaVal = "qrz";
>>> + client.propertyCreate(itemPath, "cqcq", alphaVal.getBytes(),
>>> Depth.empty, null,
>>
>> Do you need to pass "UTF-8" to alphaVal.getBytes?
>
> Don't know. Do I? Tests pass.

Looks like all the string conversions were remove, so it's moot.

But typically, one always wants to pass UTF-8 to String's constructor and
getBytes() so you don't have different encodings in different locales.

Blair
Received on 2010-12-30 21:37:49 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.