String.ToUpper does not work!!!

  • Thread starter Thread starter Gavin
  • Start date Start date
G

Gavin

Hi

I have a user with an English Pocket PC but with Current
Culture set to: ja-JP and ANSICodePage set to: 932.

I want to change some text, for example "Hello" to upper
case but the code below will not change the text to upper
case. It will return "Hello"!

test = test.ToUpper

Does not work

test = test.ToUpper
(System.Globalization.CultureInfo.InvariantCulture)

Does not work

Is this a bug or am I doing something wrong?

Help

Gavin
 
Hi Hiroaki

I added the line:

Dim test as String = "Test"
test = test.ToUpper (new CultureInfo("en-US", false))

and my user got the following error msg:

PlatformNotSupportedException
Application::Run+0xf
frmMain::Main+0xa

The same program works on my Pocket PC without any
problems.

My user removed the Japanese Input application from his
English Pocket PC and it still does not work.

This is what is installed on his machine:

..NET Compact Framework version: 1.0.3316.0
ANSICodePage: 1252
Current Culture: en-US

Before it was:

..NET Compact Framework version: 1.0.3316.0
ANSICodePage: 932
Current Culture: ja-JP


HELP

Gavin
 
Hi would you mind trying again hard resetting the device?
Coulkd you please also tell me which os version do you have on the device?

Thx
Fernando

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Gavin" <fc@yelledDOTcom>
| Sender: "Gavin" <fc@yelledDOTcom>
| References: <[email protected]>
<ObS3C#[email protected]>
| Subject: Re: String.ToUpper does not work!!!
| Date: Mon, 12 Jan 2004 21:09:59 -0800
| Lines: 35
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcPZk33nMPL/uiYNSTK/OapBBaVqKw==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42857
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Hiroaki
|
| I added the line:
|
| Dim test as String = "Test"
| test = test.ToUpper (new CultureInfo("en-US", false))
|
| and my user got the following error msg:
|
| PlatformNotSupportedException
| Application::Run+0xf
| frmMain::Main+0xa
|
| The same program works on my Pocket PC without any
| problems.
|
| My user removed the Japanese Input application from his
| English Pocket PC and it still does not work.
|
| This is what is installed on his machine:
|
| .NET Compact Framework version: 1.0.3316.0
| ANSICodePage: 1252
| Current Culture: en-US
|
| Before it was:
|
| .NET Compact Framework version: 1.0.3316.0
| ANSICodePage: 932
| Current Culture: ja-JP
|
|
| HELP
|
| Gavin
|
 
BTW, could you please try the same example on a Japanese PPC, NETCF doesn't
support Japanese locale on an english PPC.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Gavin" <fc@yelledDOTcom>
| Sender: "Gavin" <fc@yelledDOTcom>
| References: <[email protected]>
<ObS3C#[email protected]>
| Subject: Re: String.ToUpper does not work!!!
| Date: Mon, 12 Jan 2004 21:09:59 -0800
| Lines: 35
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcPZk33nMPL/uiYNSTK/OapBBaVqKw==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42857
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Hiroaki
|
| I added the line:
|
| Dim test as String = "Test"
| test = test.ToUpper (new CultureInfo("en-US", false))
|
| and my user got the following error msg:
|
| PlatformNotSupportedException
| Application::Run+0xf
| frmMain::Main+0xa
|
| The same program works on my Pocket PC without any
| problems.
|
| My user removed the Japanese Input application from his
| English Pocket PC and it still does not work.
|
| This is what is installed on his machine:
|
| .NET Compact Framework version: 1.0.3316.0
| ANSICodePage: 1252
| Current Culture: en-US
|
| Before it was:
|
| .NET Compact Framework version: 1.0.3316.0
| ANSICodePage: 932
| Current Culture: ja-JP
|
|
| HELP
|
| Gavin
|
 
It looks like the third party app that he installed to add japanese support
broke NETCF, that's why he's getting a PlatfornNotSupportedException.
It should work as expected on a regular English or Japanese device, anyway,
if you can provide me with more information regarding the third party tool
I can look a little further on why is this happening.

Fernando
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: String.ToUpper does not work!!!
| thread-index: AcPgK+xQNR7MQsvRSqenIFXIL3JUHw==
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| From: "=?Utf-8?B?R2F2aW4=?=" <[email protected]>
| References: <[email protected]>
<ObS3C#[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: String.ToUpper does not work!!!
| Date: Wed, 21 Jan 2004 06:36:14 -0800
| Lines: 9
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:43613
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi

My customer is using an HP IPAQ 4155(P/N:FA175A) English version.

I can ask him to do a hard reset, I'm quite sure it will solve the problem
since I have other customers with the identical device install my game
without any problems. But, it is not the solution I had hoped for. I have
noticed that when my game crashes or does not work as expected, with some
customers a soft reset will usually solve the problem but with other
customers soft resetting will not solve the problem. It would be
interesting to know why? Maybe an 3rd party app has damaged the .NET CF?

Thanks

Gavin
|
 
I will try to investigate a little more about this 3rd party app.

Thanks for the info,
Fernando

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: String.ToUpper does not work!!!
| thread-index: AcPhWEFIu81zGojGTBegu+3XcRJk/A==
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| From: "=?Utf-8?B?R2F2aW4=?=" <[email protected]>
| References: <[email protected]>
<ObS3C#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: String.ToUpper does not work!!!
| Date: Thu, 22 Jan 2004 18:26:06 -0800
| Lines: 10
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:43820
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| The 3rd party app. that most likely broke .NET CF is Effy-Japanese 3.0
(Eng/Jp). The link is
<http://www.timespace21.co.kr/eng/download/down_inputmethod_30.asp?lang=JpnE
ng&os=Window>.

I installed it on my English PPC 2002 and I'm quite sure the app has
prevented me from performing cut, copy or paste
operations using the SIP in any .NET app textbox now. I even un-installed
Effy and I still cannot cut, copy
and paste.

Thanks

Gavin
|
 
My customer did a hard reset and ToUpper now works.

Apparently he used the wrong version of the Japanese input system, EFFY Japanese. He installed the Pocket PC 2002 version instead of Windows Mobile 2003 version which is for his IPAQ. Installing the correct version does not break .NET CF. So for some strange reason installing the 2002 version broke .NET CF.

Hope that helps.

Gavin
 
Back
Top