This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Find and Replace script
#5
(10.01.2020, 13:35)admin Wrote: After gsub in your code:
Code:
db:update('objects', { name = newName }, { id = name.id })
Great, now this is working!

But then there is a nother problem. In many projects there has been the use of special Norwegian characters. If I want to find and replace that it doesn't seem to work.

Example, I have a name; string: 08-09 UTE persienner vest lysniv�
And I want to replace lysniv� with lysnivaa. This part is not really working, even though the log states that the string has been founs, but the replacement string is the exact same.

Is this maybe something that we are not able to fix?
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply


Messages In This Thread
Find and Replace script - by Trond Hoyem - 10.01.2020, 10:52
RE: Find and Replace script - by admin - 10.01.2020, 12:48
RE: Find and Replace script - by Trond Hoyem - 10.01.2020, 13:06
RE: Find and Replace script - by admin - 10.01.2020, 13:35
RE: Find and Replace script - by Trond Hoyem - 10.01.2020, 13:53
RE: Find and Replace script - by admin - 10.01.2020, 14:06
RE: Find and Replace script - by Trond Hoyem - 10.01.2020, 14:10

Forum Jump: