Monday, October 25, 2010

JSP and contentType attributes of pageEncoding



On the JSP page contentType pageEncoding and the difference between two properties:

pageEncoding jsp file itself is encoded

contentType the charset is when the server sends the content to the client code

JSP to go through two "codes", the first phase will use pageEncoding, the second phase will use utf-8 to utf-8, the third stage is from the Tomcat out of the pages, use the contentType.

The first stage is the jsp compiled. Java, it will be set according to pageEncoding read jsp, the result is translated by the specified encoding scheme into a single UTF-8 JAVA source (ie. Java), if pageEncoding set wrong or not set, out of that Chinese garbage.

In the second phase JAVAC the JAVA source to compile java byteCode, regardless of when the JSP write what encoding scheme used, the results of this stage and all the encoding is UTF-8 in the java source.

JAVAC with the encoding UTF-8 reading java source code, compiled into UTF-8 encoding of binary code (ie. Class), this is the JVM of the constant string in the binary code (java encoding) expression within the norms.

The third stage is the Tomcat (or the application container) loading and execution phases II to the JAVA binary code, the output, that is, the client can see, this time hidden in the phase I and phase II parameter contentType played an effect on

contentType setting.

pageEncoding and the contentType the default is ISO8859-1. and casually set one, the other would follow as a (TOMCAT4.1.27 so). but this is not absolute, depending on their JSPC approach. The pageEncoding does not mean contentType, better text CJKV Asia Department of JSP page development and display, (eg pageEncoding = GB2312 does not mean contentType = utf-8).

jsp files like. java,. java being read into the compiler when the default is set by the operating system corresponding to the locale encoding, such as mainland China is GBK, Taiwan is BIG5 or MS950. We are both in general and in ue in Notepad to write code, specially if there is no transcoding, then write out the contents of all the local encoding format. Therefore, the compiler approach virtual machine can just get the correct information.

Jsp file is not the case, however, it does not the default transcoding process, but specifies pageEncoding transcoding can be achieved right up.

For example:

Metropolitan print out garbled because the input "Hello" is gbk, but the server is properly captured, "Hello" is not known.

However, if the change

This server will be caught right "hello" the.







Recommended links:



Extreme Programming (eXtreme Programming) Summary



Concerned about the anti-monopoly law enforcement agency jurisdiction overlap



Good HTML Tools



FLV to PSP



evaluation PIMS And Calendars



2008 Zhongguancun Top Ten News: Premier Wen INSPECTED Zhongguancun selected



OGM To MP4



Simple Site Administration



OGM to MKV



LiveMotion Make the drop-down menu



Red Hat, JBoss founder and PROSPECTS may leave doubt



Free patterns subversive



Basic Framework For JSF



Thinking like a CONSULTANT as



your computer can run faster by CLEANING your



Friday, October 8, 2010

29: notebook average selling price fell below one thousand U.S. dollars


United States

The New York Times: Laptop thousand dollars below the average selling price this year is expected to usher in the explosive growth of sales

In the electronic world, the gradual decline in prices can not be avoided, but in today's personal computer market, the price is simply the speed of decline can be "earthshaking" to describe. According to Current Analysis market research agencies to provide statistical data, the time so far this year, the average selling price of laptops has declined 18.5%, while the vast majority of notebook product prices even lower than 1000 U.S. dollars.

At the same time, the price of desktop computers is also a significant diving experience. "We may even see the PC market, the price of a more severe decline." Gartner analyst. In fact, the current personal computers is going through "replacement", which also means big companies have more potential users, according to statistics on the market today 70% of computers used in the previous two years older models, so users large-scale hardware update also led to fierce competition from manufacturers, and ultimately led to the rapid price dive.

According to statistics, the global average selling price of laptops down to 963 U.S. dollars, down 18.5% over the same period last year. Interestingly, Current Analysis analyst pointed out that "When an electronic product price below 1000 U.S. dollars mark for the time, is also a time when sales began soaring." According to statistics, the first five months of this year than last year notebook sales up 37% over the same period, of which 60% of sales last month, the average price of less than one thousand U.S. dollars. Of course, given the decline in the selling price, notebook product revenue growth in the first five months was only 15.5%. Desktop market conditions more severe, the first five months of this year sales growth rate of desktop computers 14.8%, while revenue has declined four percentage points instead, learned more than half of desktop computers sell for less than five 100 U.S. dollars.

AP: Bulgaria Europe's biggest Internet piracy case outbreak, plans to join the EU next year, hampered

Bulgarian police have announced that two men on suspicion of illegal music and movie products, and summoned the police, this is so far the largest-ever Europe-wide network of piracy cases. The police arrested two men for the organization's administrators and system monitoring staff, they provide the number of illegal music as much as 20 million, covering almost three million music albums, at the same time there are tens of thousands of films, the site is named arenabg.com, is the highest click rate in Bulgaria is one of the sites.

It is learned through the payment of 2.5 U.S. dollars per month, any user can freely on their web site to download music and movie resources. It is estimated that their behavior for the entertainment industry has brought a total of 30 million U.S. dollars in losses. At the same time, the police search process, also the home of criminals found three satellite receiving equipment and 200 pirated movie CD. According to Sofia, Bulgaria, the local investigation agency said: "This is the largest ever Europe-wide network of piracy cases." It is reported that, starting from the sixth week, the website will be officially closed. In fact, Bulgaria's domestic digital content piracy is rampant, and this is impeding the smooth accession to the EU of Bulgaria an important factor in the organization. Currently, the EU has already issued a warning to Bulgaria, if they can not effectively restrain the local piracy industry, plans to join the EU next year will be very difficult.

The Washington Post: Microsoft released the latest hardware drivers diagnostic tool, helping manufacturers to avoid driving loophole

At a recent Windows Hardware Engineering Conference WinHEC, Microsoft announced two new drives write software tool designed to help hardware manufacturers "stability, security," the Windows driver, so as to avoid hardware incompatibility phenomenon. It is reported that these two tools named "PreFast for Drivers" and Static Driver Verifier, are source code analysis tools to help people find driver source code loopholes. "We want drivers to be more reliable and stable." Microsoft spokesman says. As we all know, Windows operating system requires additional hardware driver to make the normal operation, the driver problem will lead to the paralysis of the entire computer. Microsoft's latest release through two diagnostic tools, "the user's computer will no longer be troubled by nasty security holes." It is reported that these two tools will support Vista and XP, and after 2000 all Windows operating systems. Static Driver Verifier will be responsible for diagnosis of kernel-mode drivers, while the Static Driver Verifier is responsible for diagnosis of other device drivers.

England

Reuters: nano-materials technology becoming more perfect, invisible cloak technology is expected to put into practice

Perhaps this scene can only appear in science fiction movies: hero wearing a stealth cloak, and instantly escape the enemy surrounded. With the tireless efforts of scientists, however, may be invisible cloak is no longer just a product of fantasy. It is understood that the surface material to a special technology, light and other electromagnetic waves will be bent and cut to bypass this particular system, which appears invisible, results.

Scientists said that with the current nano-technology, the production of this special material will not be impossible. Imperial College and the United States, researchers at Duke University in a complex of research, the possibility that the invisible cloak. Duke University, Professor Smith said: "The person wearing a cape like stealth in space, dug a hole, Any Light and electromagnetic waves directly through the hole, and thus will not see the cloak to hide the material." Practical on the principles of stealth cloak will not only be applied to the "stealth", with its help, any electromagnetic signal can bypass the interference and more effective barrier, thereby maintaining signal integrity. On the other hand, Mr. Smith said: "In fact stealth cloak technical feasibility, as early as 50 years ago has been proved by mathematicians, but now developed the possibility of nano-materials technology is expected to be put into practice." Learned U.S. Department of Defense is sponsoring the study conducted at Duke University.

vaunet.com: Study: consumers still do not understand high definition television service

High-definition TV market has attracted major players in almost all electrical appliances manufacturers, but for consumers, they seem not ready for this new thing. According to statistics, one in five users said "do not know why change for the high-definition TV products." And up to 50% of users said they did not even know that high definition television set-top box products require an additional two-thirds of users do not have realized that viewing high-definition television means that every month to pay a certain amount of rental fee.

Analysts said the main reason for confusion caused by the user is "high definition television" and "high-definition television program," the concept of confusion, to buy high-definition television products, users may not watching high-definition TV content, and watch high-definition television Content you have to buy high-definition television. "Users now very confused, first of all they need to buy the product, followed by the need to pay extra content." Analyst says, "Although there are many high-definition content is free areas, such as the upcoming World Cup, however, Users still have to pay 拢 10 a month monthly fee. "According to analysts predicted that if the user wishes to transition to high definition television, the first year, the average spending up to 拢 1,900.

France

AFP: Two New York men who tried to extort 150,000 U.S. dollars MySpace website in jail

Recently, two New York youths were arrested by the court on charges of "suspicion of extortion social networking site MySpace 15 million. It is reported that two youths were 18 and 19 years of age, before they call the MySpace, the site claims to find loopholes and asked for 150,000 U.S. dollars in hush money, otherwise the site will use the vulnerability of theft of personal user information.

After that, the police involved in the investigations. Interestingly, the police pretend that MySpace site last week, staff, and the two men meet around the coffee shop, and ultimately the implementation of the arrest. In fact, earlier this year, MySpace site has also been a burst of loopholes, but the company timely remedial action to avoid trouble from occurring. According to the police, the two men are programmers crime, they established a company called MySpacePlus.com site, it is learned that the site offers a tool called SpyFuse can be used to invade MySpace.

So far, News Corp's MySpace has refused to comment on the incident, only that will work closely with the police. According to statistics on the MySpace social networking site users has reached 70 million total as much.






相关链接:



Hot COMMUNICATIONS Tools



IMPROVEMENT of the current financial report



hosted voip pbx solution bns hosting



TS TO MPG



Canon revolution: the producers return to the "complete man"



Watch cool mechanical picture PRODUCTION process



U.S. export control policy toward China brewing adjustment



Adobe "CULMINATION of the track" Result of Contest winners



Whether to edit the image CMYK



CMMB TD and who needs who more?



Best Games Simulation



RMVB to MP4



MKV To FLV