Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import items with special characters in part number
03-11-2015, 02:47 AM,
#1
import items with special characters in part number
We are trying to determine if certain characters can be imported.
The template has given us an error on ' & + " . (space) that these characters cannot be in the Part Number.

Is this an issue with the version PHP or MySQL.
The PHP doc says MyqSql 5.1.6 (and later) supports all characters for identifiers (indexes?) except ASCII null.

Is this a webERP restriction?

Thanks Bill
Reply
03-11-2015, 03:09 AM,
#2
RE: import items with special characters in part number
Hi Bill, it is a webERP restriction, Tim
Reply
03-11-2015, 03:20 AM,
#3
RE: import items with special characters in part number
(03-11-2015, 03:09 AM)falkoner Wrote: Hi Bill, it is a webERP restriction, Tim

Thanks Tim that will save mea lot of digging. Bill
Reply
03-11-2015, 03:30 AM,
#4
RE: import items with special characters in part number
You can see the full range of disallowed characters in this function from includes/MiscFunctions.php:

function ContainsIllegalCharacters ($CheckVariable) {
if (mb_strstr($CheckVariable,"'")
OR mb_strstr($CheckVariable,'+')
OR mb_strstr($CheckVariable,'?')
OR mb_strstr($CheckVariable,'.')
OR mb_strstr($CheckVariable,"\"")
OR mb_strstr($CheckVariable,'&')
OR mb_strstr($CheckVariable,"\\")
OR mb_strstr($CheckVariable,'"')
OR mb_strstr($CheckVariable,'>')
OR mb_strstr($CheckVariable,'<')){
return true;
} else {
return false;
}
}

Tim
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)