Tag Archives: Java

Chinese characters in form submission

Client page:

<head>
<meta http-equiv="Catchup Scheduler" content="text/html; charset=UTF-8">
</head>

<body>
<form action="next.php" method="POST" >
<input type="text" name="programme_name"></br>
<input type="submit">
</form>
</body>

Server page:

$name = $_POST['programme_name'];

mysql_query("SET character_set_client=utf8",$con);
mysql_query("SET character_set_connection=utf8", $con);
mysql_query("SET character_set_results=utf8", $con);

$query = "Select * from programme 

Continue lendo

Tagged , , , , | Deixe um comentário

What is the best architecture to use at the back end for a java client based client/server setup?

I’m fairly new to programming and have been focussing a great deal on Java in recent months. I would like to write an application with a Java applet front end which will capture information about my users and allow forContinue lendo

Tagged , , , , | Deixe um comentário

Recognizing a character to be Chinese and get Chinese “pinyinphonetics from simplified characters?

É possível
A) find out if a character is Chinese (simplificado)
and in that case
B) get the pinyin? example: 你好 => nǐhǎo
using java or php?
Saúde… Continue lendo

Tagged , , | Deixe um comentário

Google AppEngine java.net.Socket is restricted error

I’m using Quercus/PHP on AppEngine. When I run a simple script with file_get_contents($url);… Eu recebo um erro:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google App Engine developer’s guide for more details.
I’ve googled and although I find Continue lendo

Tagged , , , | Deixe um comentário

java php sha1 function

what is alertnate of sha1 function in java
just like in php

sha1("here is string");

what will be in java Continue lendo

Tagged , , | Deixe um comentário

Cannot read response from Java socket server using PHP client

I have a server written in Java. Its a simple one that echoesHELLOwhen a client connects and then echoes back any reply the client sends. The code is below:

ServerSocket ss=new ServerSocket(2001);
while(true) {
  Socket s=ss.accept();
  BufferedReader in=new 

Continue lendo

Tagged , , , | Deixe um comentário

php javascrip posting data to php file andler on php and javascript

im posting data to a php file
i only getting some sata not all of it
and a dont know how to handle that data one in php to the java script
i’m doing the code in oop this isContinue lendo

Tagged , , | Deixe um comentário

Signing PDFs on a server document using a signature from the user

Aqui está o que eu quero fazer:
user creates document (html)
edit -> save PDF on server
ask if user wants to sign the document

(sim) here is the problem
(não) no problem

???? (not important)
So now the problemContinue lendo

Tagged , , , | Deixe um comentário

Andróide, http: How to upload a file to a site hosted by a shared server?

I bought myself a website where it is being hosted on a linux server which shares one IP address using cpanel. The problem that is, agora, i want to use this code to upload a file to my site. EverytimeContinue lendo

Tagged , , , , | Deixe um comentário

android analisador JSON me dá erros

Eu sou muito novo no Android e estou desenvolvendo um aplicativo que transmite dados do Android para mysql através de php e estou registrando parte os usuários agora. I got some codes from searching but while i’m implementing it I’m getting errors.Continue lendo

Tagged , , , , | Deixe um comentário
18 páginas